-
Notifications
You must be signed in to change notification settings - Fork 654
90 lines (72 loc) · 2.23 KB
/
ui.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
name: Apache Jena UI
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
# Unit tests, faster, only run on GH for the ASF repository.
unit-test-and-build:
if: github.repository == 'apache/jena'
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
java_version: [ '21' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
working-directory: jena-fuseki2/jena-fuseki-ui
node-version: 'lts/*'
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}
- name: Build with Maven
run: mvn -B --file pom.xml --projects jena-fuseki2/jena-fuseki-ui --also-make-dependents test install
- name: Lint
working-directory: jena-fuseki2/jena-fuseki-ui
run: yarn lint
cypress-run:
# End-to-end tests, only run on GH for the ASF repository.
if: github.repository == 'apache/jena'
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
browser: [ firefox, chrome, electron ]
os: [ ubuntu-latest ]
env:
COVERAGE: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
working-directory: jena-fuseki2/jena-fuseki-ui
node-version: 'lts/*'
- name: Test (E2E)
uses: cypress-io/github-action@v6
env:
BASE_URL: http://localhost:8080/
FUSEKI_URL: http://localhost:3030/
with:
working-directory: jena-fuseki2/jena-fuseki-ui
config-file: cypress.config.mjs
browser: ${{ matrix.browser }}
build: yarn run build
start: yarn run serve:offline
config: baseUrl=${{ env.BASE_URL }}
wait-on: '${{ env.FUSEKI_URL }}$/ping, ${{ env.BASE_URL }}index.html'
wait-on-timeout: 120