-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.1 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
name: ci
on:
pull_request:
branches:
- main
- master
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Restore Cached Dependencies
uses: actions/[email protected]
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Set Up Performant NPM
uses: pnpm/action-setup@v2
with:
version: 6.2
run_install: false
- name: Configure Performant NPM
run: pnpm config set pnpm-prefix ~/.pnpm/
- name: Install dependencies 👨🏻💻
run: pnpm i --shamefully-hoist
- name: Generate Static Content
run: pnpm run generate
- name: Run Linter
run: pnpm run lint