Skip to content

Merge pull request #85 from 178inaba/dependabot/github_actions/golang… #133

Merge pull request #85 from 178inaba/dependabot/github_actions/golang…

Merge pull request #85 from 178inaba/dependabot/github_actions/golang… #133

Workflow file for this run

name: Lint and Test
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
gofmt-vet:
name: Gofmt and Vet ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install tools
run: make -s go-install-tools
- name: Run Gofmt diff
run: make -s fmt-diff
- name: Run Vet
run: make -s vet
golangci-lint:
name: GolangCI Lint ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: GolangCI Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.52.2
skip-pkg-cache: true
test:
name: Test ${{ matrix.go }}
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Test
run: make -s test