-
Notifications
You must be signed in to change notification settings - Fork 14
42 lines (42 loc) · 1.25 KB
/
on-pull-request-workflow.yaml
File metadata and controls
42 lines (42 loc) · 1.25 KB
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
name: On PR
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
verify-codebase:
permissions:
contents: write
name: "Verify codebase"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout project"
uses: actions/checkout@v4
- name: "Setup NodeJS"
uses: actions/setup-node@v4
with:
node-version: "22"
- name: "Setup JDK"
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "17"
- name: Install Dependencies
run: npm install
- name: Compile TypeScript
run: npm run compile
- name: Lint
run: npm run lint
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v36
with:
separator: ","
files: |
packages/testsuite/cypress/e2e/**/*.cy.ts
- name: "Run tests of modified files"
if: steps.changed-files-specific.outputs.any_changed == 'true'
env:
TESTCONTAINERS_RYUK_DISABLED: true
run: |
SPECS="${{ steps.changed-files-specific.outputs.all_changed_files }}"
KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:24.0 npm run test -- --browser=chrome --specs=$SPECS