generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 149
38 lines (34 loc) · 817 Bytes
/
PR.yml
File metadata and controls
38 lines (34 loc) · 817 Bytes
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
name: PR Build
on:
pull_request:
merge_group:
concurrency:
group: pr-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Run CDS snippet checker
run: |
cd .github/cds-snippet-checker
npm install
npm run check
- name: Run Java snippet checker
run: |
cd .github/java-snippet-checker
npm install
npm run check
- run: npm ci
- run: npm test
- run: npm run docs:build
- run: npm run lint