-
-
Notifications
You must be signed in to change notification settings - Fork 104
50 lines (49 loc) · 1.75 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
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:
- 14.x
- 16.x
- 18.x
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- 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: [14.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- uses: actions/setup-java@v1
with:
java-version: '11.x'
- 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 }}