Skip to content

Merge pull request #25 from aereal/update-actions #32

Merge pull request #25 from aereal/update-actions

Merge pull request #25 from aereal/update-actions #32

Workflow file for this run

---
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
ok:
if: failure()
runs-on: ubuntu-latest
needs:
- test
- lint
steps:
- run: exit 1
test:
strategy:
matrix:
go_version:
- stable
- oldstable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ matrix.go_version }}
cache: true
- name: test
run: |
go test -v -race -coverprofile=cover.out ./...
- uses: k1LoW/octocov-action@1ad702b3118b6a055c00b01db68ca0d9f6641dbc # v1.4.0
if: ${{ matrix.go_version == 'stable' }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: lint
uses: reviewdog/action-golangci-lint@dd3fda91790ca90e75049e5c767509dc0ec7d99b # v2.7.0
with:
fail_level: warning
filter_mode: nofilter