Skip to content

chore(deps): bump github/codeql-action from 3.35.3 to 4.35.2 in the github-actions group #205

chore(deps): bump github/codeql-action from 3.35.3 to 4.35.2 in the github-actions group

chore(deps): bump github/codeql-action from 3.35.3 to 4.35.2 in the github-actions group #205

Workflow file for this run

name: Tests and Build
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
tests:
name: Tests
strategy:
matrix:
go-version: [ stable, oldstable ]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
CGO_ENABLED: 1
runs-on: ${{ matrix.os }}
steps:
- if: ${{ matrix.os == 'windows-latest' }} # https://github.com/actions/checkout/issues/135
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}
- name: Check and get dependencies
run: |
go mod tidy --diff
- name: Test
run: go test -v -race ./...
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
- name: compile for all supported GOOS/GOARCH
run: ./build.sh