-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (31 loc) · 1.05 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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
#
name: Pull Request
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
jobs:
analyze:
name: Analyze Pull Rrequest
runs-on: ubuntu-latest
steps:
- name: The branch or tag ref that triggered the workflow run.
run: echo ${GITHUB_REF#refs/*/}
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci --no-audit
- name: Security
run: npm audit --omit dev && npm audit signatures
- name: Quality
run: npm run circular-deps & npm run lint & npm run format.check
- name: Test
run: npm run e2e & npm run test
- name: Build
run: npm run build.libs