-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1376 from xael-fry/1371_github-actions
#1371 add github-actions.yml
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Pull Requests | ||
|
||
on: | ||
pull_request: | ||
|
||
concurrency: | ||
# Only run once for latest commit per ref and cancel other (previous) runs. | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
jdk: [ 11, 17 ] | ||
name: Check / Tests (JDK ${{ matrix.jdk }}) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | ||
fetch-depth: 0 | ||
|
||
- name: Set up python 2 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '2.x' | ||
architecture: 'x64' | ||
|
||
- name: Set up JDK ${{ matrix.jdk }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
distribution: 'adopt' | ||
|
||
- name: Build with Ant | ||
run: ant -buildfile ./framework/build.xml test |