-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] initial conversion to GitHub actions
Initial GH actions usage with (mostly) auto-generated config from circleci conversion tool TODO: - use gradle action - remove circleci config - why is env package_name added? - (maybe) japicmp
- Loading branch information
1 parent
9117b6c
commit a55c4fc
Showing
3 changed files
with
56 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,21 @@ | ||
name: checkout-and-build | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: chmod +x gradlew | ||
shell: bash | ||
- name: restore_cache | ||
uses: actions/[email protected] | ||
with: | ||
key: v1-dependencies-{{ checksum "build.gradle" }} | ||
restore-keys: |- | ||
v1-dependencies-{{ checksum "build.gradle" }} | ||
v1-dependencies- | ||
- run: "./gradlew clean build" | ||
shell: bash | ||
- name: save_cache | ||
uses: actions/[email protected] | ||
with: | ||
path: "~/.m2" | ||
key: v1-dependencies-{{ checksum "build.gradle" }} |
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,10 @@ | ||
name: run-tests | ||
runs: | ||
using: composite | ||
steps: | ||
- run: "./gradlew check jacocoTestReport --continue --console=plain" | ||
shell: bash | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
directory: ./coverage/ | ||
flags: unittests |
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,25 @@ | ||
name: auth0/auth0-java/build-and-test | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: ["master", "main", "v1"] | ||
|
||
# TODO what is the purpose of this? | ||
env: | ||
PACKAGE_NAME: xxxxh0 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: openjdk:8-jdk | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError" | ||
_JAVA_OPTIONS: "-Xms512m -Xmx1024m" | ||
TERM: dumb | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/checkout-and-build" | ||
- uses: "./.github/actions/run-tests" |