-
-
Notifications
You must be signed in to change notification settings - Fork 107
50 lines (40 loc) · 1.22 KB
/
pipeline.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: Automated checks
permissions:
# This is required for actions/checkout
contents: read
on: pull_request
env:
node-version: '18.4.0'
pnpm-version: 8.6.0
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install Node and PNPM
uses: ./.github/actions/install-node-pnpm
with:
node-version: ${{ env.node-version }}
pnpm-version: ${{ env.pnpm-version }}
- name: Get cached dependencies
# cache is automatically saved after this job completes. jobs depending on this one will get the latest cached files
id: cache-step
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install project dependencies
if: steps.cache-step.outputs.cache-hit != 'true'
run: |
echo $NODE_ENV
pnpm install --frozen-lockfile
- name: Run Prettier
run: pnpm run format
- name: Run compiler
run: pnpm run typecheck
- name: Run tests
run: |
pnpm run build:server
pnpm run test