-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.28 KB
/
build.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
name: Build Project
on:
push:
branches-ignore:
- 'dependabot/**'
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
UpgradeTests:
name: Upgrades
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: [ javabot, morphia ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
server-id: central
cache: maven
- name: Install maven
uses: sfesenko/setup-sdkman@v1
with:
deps: maven:4.0.0-rc-2
- name: Checkout ${{ matrix.project }} repository
working-directory: projects/${{ matrix.project }}
run: |
git clone $( cat git ) git_repo
- name: ${{ matrix.project }} Initial build
working-directory: projects/${{ matrix.project }}
run: "[ -e build.sh ] && ./build.sh || ../../build.sh"
- name: Apply upgrades
working-directory: projects/${{ matrix.project }}/git_repo
run: ../../../rewrite.sh
- name: ${{ matrix.project }} Post-upgrade build
working-directory: projects/${{ matrix.project }}
run: "[ -e build.sh ] && ./build.sh || ../../build.sh"