Skip to content

Commit

Permalink
add GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Apr 27, 2023
1 parent a3d1f35 commit 84f0150
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 1,39 @@
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
go:
- '1.20'
- '1.19'
- '1.18'
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: test
shell: bash
run: |
./go.test.sh
- name: upload coverage report
uses: codecov/codecov-action@v3
with:
env_vars: OS,GO
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go }}

0 comments on commit 84f0150

Please sign in to comment.