Bump github/codeql-action from 3.27.7 to 3.27.9 #861
Workflow file for this run
This file contains 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
# GitHub Actions - CI for Go to build & test. | |
# Based on copy of https://github.com/fxamacker/cbor/workflows/ci.yml | |
name: ci | |
# Remove default permissions at top level and grant in jobs. | |
permissions: {} | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- 'feature/**' | |
- 'v**' | |
pull_request: | |
branches: | |
- main | |
- 'feature/**' | |
- 'v**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
# Test on various OS with default Go version. | |
tests: | |
name: Test on ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
go-version: ['1.22', '1.23'] | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 1 | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Build project | |
run: go build ./... | |
- name: Run tests | |
run: | | |
go version | |
go test -timeout 180m -race -v ./... |