forked from dfuse-io/dfuse-eosio
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 990 Bytes
/
main.yml
File metadata and controls
45 lines (37 loc) · 990 Bytes
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
name: Build and Test
on:
push:
branches:
- develop
pull_request:
branches:
- "**"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Check out code
uses: actions/checkout@v1
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run Unit tests.
run: go test ./...
- name: Build dfuseeos
run: go build -o dfuseeos ./cmd/dfuseeos
# This one might be a bit more complicated... Unsure how this will behave in Github's workflow environment.
# - name: Smoke Test
# working-directory: tests
# run: DEBUG=true E2E_TESTS=true go test