Skip to content

Commit

Permalink
add ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
losisin committed Oct 24, 2023
1 parent b35f109 commit 5a6edbe
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci
on:
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
VERBOSE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
args: --timeout 5m0s
- name: Run fmt
run: go fmt ./...
- name: Run vet
run: go vet ./...
- name: Run tests
run: go test -v ./...

0 comments on commit 5a6edbe

Please sign in to comment.