Skip to content

Commit

Permalink
Try adding platform tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fergus Strange committed Dec 4, 2019
1 parent b896e38 commit ea0b4b8
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,51 @@ on:
branches:
- master
jobs:
build:
name: Build
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: checkout
id: go
uses: actions/checkout@v1
- name: Set up Golang
- name: set up golang
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Fetch Dependencies
- name: fetch dependencies
run: |
go get -v -t ./...
- name: Test
- name: test
run: go test -v -race -cover -covermode=atomic -coverprofile=coverage.out ./...
- name: Test Examples
- name: test examples
run: |
pushd examples && \
go test -v ./... && \
popd
- name: Platform Tests
run: |
pushd platform-test && \
go test -v ./... && \
popd
- name: Upload Coverage Report
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: GO111MODULE=off go get github.com/mattn/goveralls && $(go env GOPATH)/bin/goveralls -v -coverprofile=coverage.out -service=github
- name: Build
run: go build -v .
platform_tests:
name: platform tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node: [6, 8, 10]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
id: go
uses: actions/checkout@v1
- name: set up golang
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: fetch dependencies
run: |
go get -v -t ./...
- name: platform tests
run: |
pushd platform-test && \
go test -v ./... && \
popd

0 comments on commit ea0b4b8

Please sign in to comment.