Skip to content

Commit

Permalink
test: add workflow for golang tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JimLarson committed Jun 9, 2021
1 parent 88a5f27 commit f00ea60
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test-golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Golang

# run CI on pushes to master, and on all PRs (even the ones that target other
# branches)

on:
push:
branches: [master]
pull_request:

# set ESM_DISABLE_CACHE=true (will be JSON parsed)
jobs:
gotest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('packages/cosmic-swingset/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: go test
run: cd golang && go test ./...

0 comments on commit f00ea60

Please sign in to comment.