-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (33 loc) · 1.13 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
# A set of jobs that should always run no matter what on all Pull Requests in this repo
name: Pull Request
on:
pull_request:
jobs:
check-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm & node
uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main
- name: Check for mismatched dependencies
run: pnpm run list-mismatches
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm & node
uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main
- name: Lint code
run: pnpm run lint
unit-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm & node
uses: pocket/pocket-monorepo/.github/actions/install-pnpm-and-node@main
- name: Unit tests
# Following uses a 2 concurrency because terraform modules seems to fail with an OOM error on CI if we do more.
run: pnpm run test --concurrency=2