-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkstyle fix + add new workflow file
- Loading branch information
1 parent
711c201
commit b3007fd
Showing
2 changed files
with
87 additions
and
16 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,67 @@ | ||
name: Java 8 Container Tests | ||
|
||
# This build runs integration tests using testcontainers | ||
# The user executing the test command must have access to a running docker daemon | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
name: "modules: " | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
modules: | ||
- >- | ||
alluxio.membership.** | ||
# TODO: update the above | ||
|
||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.pull_request.title, 'DOCFIX') && | ||
!contains(github.event.pull_request.title, 'SKIPCI')" | ||
|
||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.11.0' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-java11-${{ hashFiles('**/pom.xml') }} | ||
|
||
- name: Cache local Go modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-gomod-${{ hashFiles('**/go.mod') }} | ||
|
||
- name: Run tests | ||
id: test0 | ||
run: | | ||
mkdir -p ~/.m2 | ||
ALLUXIO_DOCKER_NO_TTY=true \ | ||
ALLUXIO_DOCKER_GIT_CLEAN=true \ | ||
ALLUXIO_DOCKER_ID=0 \ | ||
ALLUXIO_DOCKER_MVN_PROJECT_LIST=dora/tests/testcontainers \ | ||
ALLUXIO_DOCKER_MVN_TESTS=${{ matrix.modules }} \ | ||
dev/github/run_docker.sh | ||
timeout-minutes: 60 | ||
|
||
- name: Archive artifacts | ||
continue-on-error: true | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: artifact | ||
path: | | ||
**/target/surefire-reports/* | ||
**/target/artifacts/* | ||
**/target/logs/* | ||
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