Skip to content

Commit

Permalink
Run integration tests in separate build server (#243)
Browse files Browse the repository at this point in the history
Use flags for less noise in mvn output
  • Loading branch information
Shon Feder committed Sep 23, 2020
1 parent afc1ca6 commit cf323bc
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]
name: Apalache Continuous Integration

jobs:
build-and-test:
unit-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
Expand All @@ -21,10 +21,33 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build and test
run: make integration
- name: Build and Unit Test
run: mvn --batch-mode --no-transfer-progress test

docker-test:
integration-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build without unit tests
run: mvn --batch-mode --no-transfer-progress -DskipTests package
- name: Run Integration tests
run: NO_MVN=true test/run-integration

docker-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit cf323bc

Please sign in to comment.