Skip to content

Commit

Permalink
. e Clean up yaml actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBob committed Sep 19, 2024
1 parent 8c68eee commit 28fd245
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/test-jdk-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,28 @@ on:
pull_request:
workflow_dispatch:

# Cancel existing executions when new commits are pushed onto the branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
java: ['21']
os: [ ubuntu ]
build-21-run-8:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4.0.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
key: ubuntu-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK${{ matrix.java }}
ubuntu-maven-
- name: Set up JDK21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
java-version: 21
- name: Turn off formatting
run: |
./set_formatting_off.sh
- name: Build with Maven
run: |
sed -i 's/<!-- formatter_plugin_begin -->/<!-- formatter_plugin_begin/g' pom.xml
sed -i 's/<!-- formatter_plugin_end -->/ formatter_plugin_end -->/g' pom.xml
mvn -B install --file pom.xml
- name: Set up JDK8
uses: actions/setup-java@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: ['16', '17', '18', '19', '20', '21']
java: ['16', '17', '18', '19', '20', '21', '23']
os: [ ubuntu, windows ]

steps:
Expand All @@ -36,9 +36,9 @@ jobs:
java-version: ${{ matrix.java }}
- name: Build with Maven
run: |
sed -i 's/<!-- formatter_plugin_begin -->/<!-- formatter_plugin_begin/g' pom.xml
sed -i 's/<!-- formatter_plugin_end -->/ formatter_plugin_end -->/g' pom.xml
./set_formatting_off.sh
mvn -B verify --file pom.xml
shell: bash
auto-merge:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 28fd245

Please sign in to comment.