-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 925 Bytes
/
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
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
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: 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