Skip to content

Bump github/codeql-action from 4.31.6 to 4.31.7 #265

Bump github/codeql-action from 4.31.6 to 4.31.7

Bump github/codeql-action from 4.31.6 to 4.31.7 #265

Workflow file for this run

# CI to build and test.
# Based on https://github.com/x448/float16/blob/master/.github/workflows/ci.yml
name: CI
# Revoke default permissions.
permissions: {}
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
# Test on various OS with some Go versions.
tests:
name: test ${{matrix.os}} go-${{ matrix.go-version }}
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
go-version: [1.17, 1.22, 1.23, 1.24, 1.25] # Test on go1.17 and latest few versions
steps:
- name: Install Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
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 30m -race -v ./...