-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 969 Bytes
/
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
name: Execute Unit Tests
on:
push:
branches:
- v2
pull_request:
branches:
- v2
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
environment: tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
# - name: Add SSH key to chekout a private repo
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Checkout code 🛎️
uses: actions/checkout@v3
- name: Install Node.js ⚙️
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install NPM packages ♾️🕳️
run: npm ci
- name: Hardhat Tests 🧑🔬
env:
SEED: ${{ secrets.SEED }}
run: npm run hardhat
- name: JEST Tests 🧑🔬
env:
SEED: ${{ secrets.SEED }}
REACT_APP_PIMLICO_API_KEY: ${{ secrets.REACT_APP_PIMLICO_API_KEY }}
run: npm run jest