diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-03 19:51:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 19:51:37 +0100 |
| commit | f3f8d1d494a08a032940c6587c7865cd0ac0dd7a (patch) | |
| tree | f929c999e0919af1325c86d7147b6b948b2bdf24 | |
| parent | fe717acf3136400a8048b5e2aabbc99414c790c1 (diff) | |
| parent | e706cb9ef3e0c8b55746c24808ae90034bfacdd0 (diff) | |
Merge pull request #61 from atlarge-research/ci/limit
Improve CI pipelines
| -rw-r--r-- | .github/workflows/build-api.yml (renamed from .github/workflows/api.yml) | 4 | ||||
| -rw-r--r-- | .github/workflows/build-frontend.yml (renamed from .github/workflows/frontend.yml) | 6 | ||||
| -rw-r--r-- | .github/workflows/build-simulator.yml (renamed from .github/workflows/simulator.yml) | 10 |
3 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/build-api.yml index ae67b753..5bbc30c4 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/build-api.yml @@ -1,9 +1,11 @@ -name: REST API +name: Build API on: push: paths: - 'api/**' + pull_request: + branches: [master] defaults: run: diff --git a/.github/workflows/frontend.yml b/.github/workflows/build-frontend.yml index da6f1031..73ab49d5 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -1,9 +1,11 @@ -name: Frontend +name: Build Frontend on: push: paths: - 'frontend/**' + pull_request: + branches: [master] defaults: run: @@ -15,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [12.x] + node: [14.x] steps: - uses: actions/checkout@v2 - name: Set up Node.js diff --git a/.github/workflows/simulator.yml b/.github/workflows/build-simulator.yml index 8174ae3a..57e8b46d 100644 --- a/.github/workflows/simulator.yml +++ b/.github/workflows/build-simulator.yml @@ -1,9 +1,11 @@ -name: Simulator +name: Build Simulator on: push: paths: - 'simulator/**' + pull_request: + branches: [master] defaults: run: @@ -15,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - java: [14] + java: [8, 15] steps: - name: Checkout repository uses: actions/checkout@v2 @@ -28,9 +30,9 @@ jobs: - uses: actions/cache@v1 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} + key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*') }} restore-keys: | - ${{ runner.os }}-gradle- + ${{ runner.os }}-${{ matrix.java }}-gradle- - name: Build with Gradle run: ./gradlew assemble - name: Check with Gradle |
