-
Notifications
You must be signed in to change notification settings - Fork 184
66 lines (52 loc) · 1.9 KB
/
copilot-setup-steps.yml
File metadata and controls
66 lines (52 loc) · 1.9 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Copilot Setup Steps
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
copilot-setup-steps:
name: Prepare Maven workspace and prime E2E dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'temurin'
cache: maven
- name: Prepare custom Maven repository directory
run: mkdir -p .m2_repo
- name: Cache custom Maven repository
uses: actions/cache@v4
with:
path: .m2_repo
key: ${{ runner.os }}-m2-repo-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-repo-
- name: Validate formatting configuration
run: mvn -B -T 2C -Dmaven.repo.local=.m2_repo formatter:validate impsort:check xml-format:xml-check
- name: Quick compile (skip tests)
run: mvn -B -T 2C -Dmaven.repo.local=.m2_repo compile -DskipTests -Pquick
- name: Download Maven dependencies for offline use
run: mvn -B -T 2C -Dmaven.repo.local=.m2_repo dependency:go-offline
- name: Maven install (skip tests)
run: mvn -B -Dmaven.repo.local=.m2_repo install -DskipTests -Pquick
- name: Install system dependencies for E2E tests
run: sudo apt-get update && sudo apt-get install -y libxml2-utils
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: ./e2e/package-lock.json
- name: Install Playwright dependencies for E2E tests
working-directory: ./e2e
run: |
npm install
npx playwright install --with-deps
- name: Run end-to-end tests of RDF4J Server and Workbench
working-directory: ./e2e
run: ./run.sh