Skip to content

Merge pull request #14 from satococoa/codex/fix-test-execution #39

Merge pull request #14 from satococoa/codex/fix-test-execution

Merge pull request #14 from satococoa/codex/fix-test-execution #39

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint_fmt_vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Check gofmt
run: make check-fmt
- name: Run go vet
run: make vet
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9.2.0
with:
version: v2.10.1
args: ./...
install-mode: binary
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Run tests
run: make test
race:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache: true
- name: Run race tests
run: make test-race