ci: improve workflow names in Actions #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | ||
| 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 ./... | ||