Skip to content

Commit

Permalink
Run go test and golangci-lint on Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Nov 21, 2023
1 parent 6e05844 commit ac8994d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
cache: true
- name: Run tests
run: make test
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21.3'
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.1
args: -v --timeout=10m

0 comments on commit ac8994d

Please sign in to comment.