forked from skycoin/skycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.77 KB
/
tests.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
53
54
55
56
57
name: Go
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
Test:
name: Do ${{ matrix.test }} tests
runs-on: ubuntu-20.04
strategy:
matrix:
test: [units, integrations, integrations/disable-csrf, integrations/auth]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: 14.15
- name: Test
env:
TEST_SUIT: ${{ matrix.test }}
run: |
Xvfb -ac :99 -screen 0 1280x1024x16 & export DISPLAY=:99
./ci-scripts/lint-and-test.sh
Build:
name: Build wallets
needs: Test
runs-on: macos-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Gox
run: GO111MODULE=off go get github.com/skycoin/gox
- uses: actions/cache@v2
with:
path: |
~/Library/Caches/electron
~/Library/Caches/electron-builder
key: ${{ runner.os }}-electron-${{ hashFiles('./electron/package-lock.json') }}
- name: Build Wallets
env:
CSC_IDENTITY_AUTO_DISCOVERY: false
run: ./ci-scripts/build-wallet.sh