-
Notifications
You must be signed in to change notification settings - Fork 50
51 lines (41 loc) · 1.11 KB
/
ci.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
name: Any branch test & lint & build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events for all except ignored branches
push:
branches-ignore:
- 'alpha*'
- master
- develop
- binance
jobs:
ci:
name: ci
strategy:
matrix:
node: ['18.x']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Pre-build setup
run: npm run pre-build
- name: Run lint
run: npm run lint
- name: Running unit tests with coverage
run: npm run test:coverage-codecov
env:
VUE_APP_INFURA_KEY: ${{ secrets.VUE_APP_INFURA_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run build
run: npm run build:testing
env:
VUE_APP_INFURA_KEY: ${{ secrets.VUE_APP_INFURA_KEY }}