Skip to content

Merge pull request #2 from gotray/initial #12

Merge pull request #2 from gotray/initial

Merge pull request #2 from gotray/initial #12

Workflow file for this run

name: Check
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Install embedme
run: npm install -g embedme
- name: Verify README.md embedded code
run: npx embedme --verify README.md
- name: Check formatting
run: |
if [ -n "$(go fmt ./...)" ]; then
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
exit 1
fi