-
-
Notifications
You must be signed in to change notification settings - Fork 104
51 lines (50 loc) · 1.78 KB
/
github-ci.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
name: Prettier-java
on: [push, pull_request]
jobs:
tests:
name: unit tests (node ${{ matrix.node_version }})
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')"
strategy:
matrix:
node_version:
- 18.x
- 20.x
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- uses: actions/setup-java@v3
with:
java-version: 17.x
distribution: zulu
- name: Install dependencies
run: yarn
- name: Run CI
run: yarn run ci
e2e-tests:
name: ${{ matrix.test_repository }} (node ${{ matrix.node_version }})
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.pull_request.title, '[skip ci]') && !contains(github.event.pull_request.title, '[ci skip]')"
strategy:
matrix:
test_repository:
- e2e-jhipster1
- e2e-jhipster2
node_version: [18.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- uses: actions/setup-java@v3
with:
java-version: 17.x
distribution: zulu
- name: Install dependencies
run: yarn
- name: Build prettier-plugin-java
run: yarn run build:prettier-plugin-java
- name: Run e2e tests
run: yarn run test:prettier-plugin-java test:${{ matrix.test_repository }}