Skip to content

Commit

Permalink
Migrate to GitHub actions (#33)
Browse files Browse the repository at this point in the history
* 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
emre-f authored Jan 12, 2022
1 parent e481682 commit dafaa03
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 85 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/migration-workflow.yml
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.*

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Package Files #
*.jar
!gradle/wrapper/gradle-wrapper.jar
*.war
*.nar
*.ear
Expand Down Expand Up @@ -40,3 +41,6 @@ gradle.properties

# Exceptions to above ignore rules
!gradle/wrapper/gradle-wrapper.jar

#Ignore DS_Store
.DS_Store
85 changes: 0 additions & 85 deletions .travis.yml

This file was deleted.

0 comments on commit dafaa03

Please sign in to comment.