Skip to content

ci: improve workflow names in Actions #4

ci: improve workflow names in Actions

ci: improve workflow names in Actions #4

Workflow file for this run

name: Validate

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 2, Col: 11): The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.
run-name: Validate ${{ github.event_name == 'pull_request' && format('PR #{0}', github.event.pull_request.number) || github.ref_name }}
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Run test suite
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Set up Go
uses: actions/setup-go@v6.4.0
with:
go-version-file: go.mod
cache: true
- name: Run tests
run: go test ./...