forked from sieblyio/gateio-api
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.05 KB
/
Copy pathe2etest.yml
File metadata and controls
44 lines (35 loc) · 1.05 KB
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: E2ETests
on:
push:
pull_request:
workflow_dispatch:
jobs:
E2ETests:
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 Public API Calls
run: npm run test -- public.test.ts
- name: Test Private API Calls
run: npm run test -- private.test.ts
env:
API_KEY: ${{ secrets.API_KEY }}
API_SECRET: ${{ secrets.API_SECRET }}
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 }}