From 4c3118f25b9fd144875e8764834c70fa344cdd01 Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Wed, 18 Sep 2019 00:20:45 +0200 Subject: [PATCH 1/6] WIP: Start Testing GitHub Actions --- .github/workflows/test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..faf3163f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,15 @@ +name: CI + +on: [pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Clean Database + run: mysql -h 127.0.0.1 -u root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" + - name: Run Tests + run: gradle test From a174c6e35abcef7fc2bbd6ca35059ba70f74f74b Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Wed, 18 Sep 2019 00:23:14 +0200 Subject: [PATCH 2/6] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index faf3163f..369f5f81 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,6 @@ jobs: steps: - uses: actions/checkout@v1 - name: Clean Database - run: mysql -h 127.0.0.1 -u root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" + run: mysql -h 127.0.0.1 -u root -p root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" - name: Run Tests run: gradle test From e3418bae14ec131e0b22f76222c766762ed7f5db Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Wed, 18 Sep 2019 00:25:53 +0200 Subject: [PATCH 3/6] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 369f5f81..b6d41b34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,6 @@ jobs: steps: - uses: actions/checkout@v1 - name: Clean Database - run: mysql -h 127.0.0.1 -u root -p root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" + run: mysql -u root --password=root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" - name: Run Tests run: gradle test From 0d6afa0d04312d2f92067171d8826955c760b1e4 Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Wed, 18 Sep 2019 00:29:17 +0200 Subject: [PATCH 4/6] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6d41b34..bb899754 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: MrRamych/gradle-actions/openjdk-8@2.1 - name: Clean Database run: mysql -u root --password=root -e "DROP DATABASE IF EXISTS test; CREATE DATABASE test;" - name: Run Tests From 8a9f35771048fffeca5ad38fdb76367841ea1f63 Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Sat, 21 Sep 2019 22:56:12 +0200 Subject: [PATCH 5/6] Update .travis.yml --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 739c735f..603c79c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,9 @@ jobs: include: - stage: build and test script: - - gradle test + - | + printenv + gradle test - stage: build docker image script: - | From 2afaf99ea2c4740a970b0380dd75256a41d1e423 Mon Sep 17 00:00:00 2001 From: Mathias Quintero Date: Sat, 21 Sep 2019 23:00:36 +0200 Subject: [PATCH 6/6] Update .travis.yml --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 603c79c0..739c735f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,9 +28,7 @@ jobs: include: - stage: build and test script: - - | - printenv - gradle test + - gradle test - stage: build docker image script: - |