-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.56 KB
/
test-master-version-liquibase.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
name: test master-version Liquibase
on:
workflow_dispatch:
schedule:
- cron: '0 20 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: setup gradle
uses: gradle/actions/setup-gradle@v4
# see https://github.com/liquibase/liquibase/actions/workflows/build-main.yml
- name: Fetch latest master-version from GitHub Packages
id: liquibase-core-master-version
uses: momosetkn/fetch-gh-package-latest-snapshot-version@main
with:
org: liquibase
packageType: maven
packageName: org.liquibase.liquibase-core
githubToken: ${{ secrets.GITHUB_TOKEN }}
versionPattern: '^.{7}-SNAPSHOT$' # for master-branch condition
- name: Configure Gradle for GitHub Packages
run: |
echo "gpr.user=${{ github.actor }}" >> gradle.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> gradle.properties
- name: Test with latest liquibase master-version
run: |
./gradlew test -PliquibaseVersion=${{ steps.liquibase-core-master-version.outputs.version }}
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: 'reports-${{ matrix.os }}'
path: ./**/build/reports