Skip to content

Commit

Permalink
ci: unify test and lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
maeb committed May 21, 2024
1 parent db722cb commit b3f2d41
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 46 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/lint.yml

This file was deleted.

29 changes: 22 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
name: test

on:
pull_request:
push:
on: push

jobs:
test:
name: go test
runs-on: ubuntu-latest
strategy:
matrix:
arch: ["amd64", "386", "arm", "arm64", "mips"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: docker/setup-qemu-action@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.16.0'
- run: go test ./...
go-version: 'stable'
- run: go test ./...
env:
GOARCH: ${{ matrix.arch }}
lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- uses: golangci/golangci-lint-action@v6
with:
version: latest

0 comments on commit b3f2d41

Please sign in to comment.