-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (56 loc) · 1.93 KB
/
samples.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
name: Migrate
on: [push, pull_request]
permissions:
contents: read
jobs:
migrate:
strategy:
fail-fast: false
matrix:
include:
- tests: 7.9.3-latest
node-version: 16.20.2
generate-command: npx --yes generator-jhipster@7.9.3 --defaults
migrate-command: jhipster-migrate
- tests: 7.9.3-latest (skip-dependencies)
node-version: 16.20.2
generate-command: npx --yes generator-jhipster@7.9.3 --defaults --skip-jhipster-dependencies
migrate-command: jhipster-migrate
- tests: 7.9.3-7.9.4
node-version: 16.20.2
generate-command: npx --yes generator-jhipster@7.9.3 --defaults
migrate-command: jhipster-migrate --target-version 7.9.4
- tests: 8.1.0-latest
node-version: 20
generate-command: npx --yes generator-jhipster@8.1.0 --defaults
migrate-command: jhipster-migrate
- tests: 8.2.1-latest
node-version: 20
generate-command: npx --yes generator-jhipster@8.2.1 --defaults
migrate-command: jhipster-migrate
defaults:
run:
working-directory: ${{ github.workspace }}/app
name: ${{ matrix.tests }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: jhipster/actions/create-app-path@v0
- uses: jhipster/actions/setup-git@v0
- uses: actions/checkout@v4
with:
path: generator-jhipster-migrate
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: ${{ matrix.generate-command }}
- uses: actions/setup-node@v4
with:
node-version: 20
- run: |
npm ci
npm link
working-directory: ${{ github.workspace }}/generator-jhipster-migrate
- run: ${{ matrix.migrate-command }}
- run: git -c color.ui=always diff @^