forked from ably/ably-go
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.22 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Based upon:
# https://github.com/actions/starter-workflows/blob/main/ci/go.yml
on:
pull_request:
push:
branches: [ $default-branch ]
jobs:
check:
runs-on: ubuntu-latest
env:
GO111MODULE: on
strategy:
fail-fast: false
matrix:
go-version: [1.13, 1.14, 1.15]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Download Packages
run: go get -t -v ./ably/...
- name: Vet
run: go vet ./ably ./scripts
- name: Build
run: go build -v ./...
- name: Test with JSON Protocol
env:
ABLY_PROTOCOL: application/json
run: go test -p 1 -race -v ./...
# We explicitly do this clean between test runs in preference to specifying the slightly opaque `-count=1`
# argument to subsequent test run executions.
- name: Clean Test Cache
run: go clean -testcache
- name: Test with MessagePack Protocol
env:
ABLY_PROTOCOL: application/x-msgpack
run: go test -p 1 -race -v ./...