Skip to content

Commit

Permalink
Merge pull request #22 from customerio/add_workflow
Browse files Browse the repository at this point in the history
Add workflow
  • Loading branch information
huihuiy02 authored Jan 5, 2021
2 parents f17012c + a0e2baf commit af26f3d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.10', '1.11', '1.12' ]
env:
TEST_RESULTS: /tmp/test-results
name: Go ${{ matrix.go }} test
steps:
- uses: actions/checkout@v2
with:
path: src/github.com/customerio/go-customerio
- name: setup go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go env
- run: mkdir -pv $TEST_RESULTS
- name: Setup gotestsum
run: |
curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v0.6.0/gotestsum_0.6.0_linux_amd64.tar.gz" | sudo tar -xz -C /usr/local/bin gotestsum
- run: |
export GOPATH="${GOPATH}:${GITHUB_WORKSPACE}"
gotestsum --junitfile ${TEST_RESULTS}/unit-tests.xml -- -timeout 5m -p 1 ./...

0 comments on commit af26f3d

Please sign in to comment.