-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed .gitignore to ignore DS_Store * Create migration-workflow.yml * Update migration-workflow.yml * Deleted .travis.yml, since moved on to GitHub actions
- Loading branch information
Showing
3 changed files
with
57 additions
and
85 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,53 @@ | ||
name: GitHub Actions Migration | ||
on: [push, pull_request, workflow_dispatch] #workflow_dispatch works only if its active in the main branch | ||
jobs: | ||
Unit-Test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' #using a specific distribution of jdk11 (AdoptOpenJDK) | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Setup Gradle Wrapper | ||
run: "gradle wrapper" | ||
- name: Validate Wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: Before Script | ||
run: | #Setting up the SQLite database and Make | ||
sqlite3 -version | ||
make -version | ||
make clean-sqlite | ||
make sqlite-db-build | ||
make sqlite-db-populate | ||
- name: Script | ||
run: "./gradlew test --tests=org.*" | ||
- name: Check Gradle Wrapper Tasks | ||
run: "./gradlew tasks" | ||
- name: After Success | ||
run: | #jacocoTestReport is for testing code coverage, submits the last report to the link | ||
./gradlew jacocoTestReport | ||
bash <(curl -s https://codecov.io/bash) | ||
Docker-Integration-Test: | ||
needs: Unit-Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' #using a specific distribution of jdk11 (AdoptOpenJDK) | ||
- name: Before Install | ||
run: | | ||
make docker-build | ||
source ci/set-docker-image-version.sh | ||
echo ${DOCKER_IMG_VER} | ||
docker run --rm -d --name starter-kit-common-test-default -p 4500:4500 -p 4501:4501 ga4gh/ga4gh-starter-kit-common:${DOCKER_IMG_VER} | ||
docker run --rm -d --name starter-kit-common-test-custom -p 7000:7000 -p 7001:7001 ga4gh/ga4gh-starter-kit-common:${DOCKER_IMG_VER} --config ./src/test/resources/config/demo-config.yml | ||
- name: Script | ||
run: ./gradlew test --tests=integration.* | ||
|
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 was deleted.
Oops, something went wrong.