-
Notifications
You must be signed in to change notification settings - Fork 118
41 lines (34 loc) · 923 Bytes
/
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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
strategy:
matrix:
node: ["18.x"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Cache YARN dependencies
uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ runner.OS }}-${{ matrix.node }}-yarn-cache-
- run: yarn --no-progress --non-interactive --frozen-lockfile
- run: yarn test
- run: yarn build
- run: yarn codechecks
env:
CC_SECRET: ${{ secrets.CC_SECRET }}
# Few tips github actions
# - name: Setup SSH debug session
# uses: mxschmitt/action-tmate@v2