Skip to content

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0 #140

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0

ci(deps): bump actions/checkout from 6.0.3 to 7.0.0 #140

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.mod"
- name: Download dependencies
run: go mod download
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: latest
args: --timeout=5m
- name: Run tests
run: go test -v ./...
- name: Check schema.json is up to date
run: |
go run ./cmd/mdschema schema -o schema.json.tmp
diff schema.json schema.json.tmp || (echo "schema.json is out of sync. Run 'go run ./cmd/mdschema schema -o schema.json' and commit." && exit 1)