-
Notifications
You must be signed in to change notification settings - Fork 202
82 lines (82 loc) · 2.15 KB
/
test.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: ESLint
run: yarn lint
tsc:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: npx tsc
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Prettier
run: yarn prettier
test:
if: (github.actor != 'sismobot')
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Launch docker-compose
run: |
docker-compose -f docker-compose.test.yaml up -d
- name: Wait for services
run: |
sleep 10
- name: Tests
run: yarn test
sls_webpack:
if: (github.actor != 'sismobot')
name: Serverless webpack build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: remove aws account id
run: sed -i 's/${aws:accountId}//' serverless.yaml # to remove aws credentials dependency for build
- name: webpack
env:
SH_GITHUB_TOKEN: test
TWITTER_API_KEY: test
TELEGRAM_API_HASH: test
TELEGRAM_API_ID: test
TELEGRAM_BOT_TOKEN: test
TELEGRAM_BOT_SESSION: test
HIVE_API_KEY: test_secret
ALCHEMY_API_KEY: test
JSON_RPC_URL: test
GOOGLE_APPLICATION_CREDENTIALS: test
DUNE_API_KEY: test
GITCOIN_API_KEY: test
ANKR_API_KEY: test
ROCI_API_KEY: test
run: npx serverless webpack