-
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (48 loc) · 1.84 KB
/
e2etest.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
name: 'Build & Test'
on: [push]
# on:
# # pull_request:
# # branches:
# # - "master"
# push:
# branches:
jobs:
build:
name: 'Build & Test'
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org/'
cache: 'npm'
- name: Install
run: npm ci --ignore-scripts
- name: Check Lint
run: npx eslint src
- name: Check Build
run: npm run build
- name: Test
run: npm run test
env:
CB_PRIME_API_KEY: ${{ secrets.CB_PRIME_API_KEY }}
CB_PRIME_API_SECRET: ${{ secrets.CB_PRIME_API_SECRET }}
CB_PRIME_API_PASSPHRASE: ${{ secrets.CB_PRIME_API_PASSPHRASE }}
CB_INTX_API_KEY: ${{ secrets.CB_INTX_API_KEY }}
CB_INTX_API_SECRET: ${{ secrets.CB_INTX_API_SECRET }}
CB_INTX_API_PASSPHRASE: ${{ secrets.CB_INTX_API_PASSPHRASE }}
CB_EXCHANGE_API_KEY: ${{ secrets.CB_EXCHANGE_API_KEY }}
CB_EXCHANGE_API_SECRET: ${{ secrets.CB_EXCHANGE_API_SECRET }}
CB_EXCHANGE_API_PASSPHRASE: ${{ secrets.CB_EXCHANGE_API_PASSPHRASE }}
CB_EXCHANGE_USE_SANDBOX: ${{ secrets.CB_EXCHANGE_USE_SANDBOX }}
CB_APP_API_KEY_NAME: ${{ secrets.CB_APP_API_KEY_NAME }}
CB_APP_API_PRIVATE_KEY: ${{ secrets.CB_APP_API_PRIVATE_KEY }}
CB_ADV_API_KEY_NAME: ${{ secrets.CB_ADV_API_KEY_NAME }}
CB_ADV_API_PRIVATE_KEY: ${{ secrets.CB_ADV_API_PRIVATE_KEY }}
PROXY_ENABLED: ${{ secrets.PROXY_ENABLED }}
PROXY_HOST: ${{ secrets.PROXY_HOST }}
PROXY_PASS: ${{ secrets.PROXY_PASS }}
PROXY_PORT: ${{ secrets.PROXY_PORT }}
PROXY_USER: ${{ secrets.PROXY_USER }}