-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test-email
- Loading branch information
Showing
55 changed files
with
1,707 additions
and
430 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 |
---|---|---|
@@ -1,70 +1,44 @@ | ||
name: gocardless/gocardless-pro-java/build | ||
on: push | ||
name: build & test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
test_library_jdk8: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test | ||
run: |- | ||
export TERM=${TERM:-dumb} | ||
./install_crypto_deps.sh | ||
./gradlew test | ||
- name: Save test results | ||
run: |- | ||
mkdir -p ~/junit | ||
find . -type f -regex "$OUT_DIR/build/test-results/test/.*xml" -exec cp {} ~/junit/ \; | ||
if: always() | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
test_library_jdk9: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:9 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test | ||
run: |- | ||
export TERM=${TERM:-dumb} | ||
./install_crypto_deps.sh | ||
./gradlew test --debug | ||
- name: Save test results | ||
run: |- | ||
mkdir -p ~/junit | ||
find . -type f -regex "$OUT_DIR/build/test-results/test/.*xml" -exec cp {} ~/junit/ \; | ||
if: always() | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
test_library_jdk11: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:11 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jdk-version: [ 8, 9, 11 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test | ||
run: |- | ||
export TERM=${TERM:-dumb} | ||
./install_crypto_deps.sh | ||
./gradlew test | ||
- name: Save test results | ||
run: |- | ||
mkdir -p ~/junit | ||
find . -type f -regex "$OUT_DIR/build/test-results/test/.*xml" -exec cp {} ~/junit/ \; | ||
if: always() | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: "~/junit" | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
java-version: "${{ matrix.jdk-version }}" | ||
distribution: adopt | ||
- name: Verify java installed properly | ||
run: java -version | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
# test | ||
- name: Test | ||
run: |- | ||
export TERM=${TERM:-dumb} | ||
./gradlew test --debug | ||
# test build | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Save test results | ||
if: always() | ||
run: |- | ||
mkdir -p ~/junit | ||
find . -type f -regex "./build/test-results/test/.*xml" -exec cp {} ~/junit/ \; | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test_library_jdk${{ matrix.jdk-version }}_junit | ||
path: "~/junit" | ||
retention-days: 7 |
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
set -x | ||
|
||
############################################################################## | ||
## | ||
|
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
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
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
Oops, something went wrong.