Skip to content

Commit

Permalink
Merge pull request #6 from cuonglm/add-ci
Browse files Browse the repository at this point in the history
Add Github Action for CI
  • Loading branch information
cuonglm authored Jul 26, 2021
2 parents 08cb34e + e8ab0d8 commit 3137454
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
pull_request:
push:
branches:
- master

name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
~/go/bin
~/go/src
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: go test ./...

0 comments on commit 3137454

Please sign in to comment.