Skip to content

ci: rename workflows to ci.yml and deploy.yml #1

ci: rename workflows to ci.yml and deploy.yml

ci: rename workflows to ci.yml and deploy.yml #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
# Cancel superseded runs of the same pull request; runs on master always finish.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
docs:
name: Go tests and documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
cache-dependency-path: |
go.sum
reference/go.sum
# setup-go defaults to local; reference/next may require a newer toolchain.
- name: Enable Go toolchain upgrades
run: echo "GOTOOLCHAIN=auto" >> "$GITHUB_ENV"
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: npm
cache-dependency-path: site/package-lock.json
- name: Vet cookbook
run: go vet ./...
- name: Test cookbook with race detection
run: go test -race ./...
- name: Install site dependencies
run: npm ci --ignore-scripts
working-directory: site
- name: Test source-backed code fences
run: npm test
working-directory: site
- name: Check source reference and build site
run: npm run build
working-directory: site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}