-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 1.15 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
name: Puik CI
on: pull_request
jobs:
puik-ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup node env 🏗
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: Cache ~/.pnpm-store 📦
uses: actions/cache@v3
env:
cache-name: cache-pnpm-store
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node }}-ci-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-ci-${{ env.cache-name }}-
${{ runner.os }}-${{ matrix.node }}-ci-
${{ runner.os }}-
- name: Install dependencies 👨🏻💻
run: pnpm i --frozen-lockfile
- name: Run linter 👀
run: pnpm lint
- name: Run tests 🧪
run: pnpm test
- name: Run coverage 📈
run: pnpm coverage