-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1.55 KB
/
ci-checks.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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
HEDERA_NETWORK: ${{ secrets.HEDERA_NETWORK }}
HEDERA_OPERATOR_ACCOUNT_ID: ${{ secrets.HEDERA_OPERATOR_ACCOUNT_ID }}
HEDERA_OPERATOR_PRIVATE_KEY: ${{ secrets.HEDERA_OPERATOR_PRIVATE_KEY }}
GUARDIAN_API_URL: ${{ secrets.GUARDIAN_API_URL }}
HMAC_SECRET_KEY: ${{ secrets.HMAC_SECRET_KEY }}
API_URL: ${{ secrets.API_URL }}
HIDE_STATUS: ${{ secrets.HIDE_STATUS }}
TEST_AUTH_URL: ${{ secrets.TEST_AUTH_URL }}
TEST_COOL_FARM_POLICY_ID: ${{ secrets.TEST_COOL_FARM_POLICY_ID }}
TEST_AGRECALC_POLICY_ID: ${{ secrets.TEST_AGRECALC_POLICY_ID }}
TEST_GENERAL_SUPPLY_DOCUMENTATION_POLICY_ID: ${{ secrets.TEST_GENERAL_SUPPLY_DOCUMENTATION_POLICY_ID }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn lint
- run: yarn format
- run: yarn types
- run: yarn test:unit