-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.06 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
name: PR CI
on:
pull_request:
types: [opened, ready_for_review, synchronize]
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ matrix.app }}
strategy:
matrix:
app: [ shared, event, service ]
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Show git info
run: |
echo "Branch: $(git branch --show-current)"
echo "SHA: $(git rev-parse --short HEAD)"
- name: Set up node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: "npm"
cache-dependency-path: ${{ matrix.app }}/package-lock.json
- name: Install dependencies
run: npm ci --ignore-scripts --progress=false --fund=false --fetch-retries=5
- name: Building
run: npm run build
- name: Linting
run: npm run lint
- name: Testing
run: npm run test -- --ci