Skip to content

Commit

Permalink
CI: use GitHub Actions to run tests (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loyalsoldier committed Jun 24, 2021
1 parent a63167e commit 7097e5b
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

on:
push:
branches:
- main
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Set up Go 1.x.y
uses: actions/setup-go@v2
with:
go-version: ^1.16.5

- name: Checkout codebase
uses: actions/checkout@v2

- name: Test
shell: bash
run: |
go test -v ./...

0 comments on commit 7097e5b

Please sign in to comment.