-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (38 loc) · 1.12 KB
/
pull-request.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
name: check-quality
on: [pull_request]
jobs:
pipeline-quality:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node version
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Cache NPM dependencies
uses: actions/cache@v3
id: cache-dependencies
with:
path: |
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: yarn
- name: Run build tokens
run: npm run build:tokens
- name: Run build icons
run: npm run build:icons
- name: Run lint
run: yarn lint
- name: Run tests
run: yarn test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_AUTOMATION_FROM_JUNIOR_CONQUISTA }}