aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Santiago <danysantiago@google.com>2021-01-27 09:22:24 -0800
committerDagger Team <dagger-dev+copybara@google.com>2021-01-27 09:23:25 -0800
commit25b6783d0ddb8d457fe5b9ec6013723bb5d5060a (patch)
tree351c2af9c021c364eb4c58f6b364e1102b0e98a5 /.github
parent208c05488bbec705a2de8f54abf3e13813343207 (diff)
downloaddagger2-25b6783d0ddb8d457fe5b9ec6013723bb5d5060a.tar.gz
Migrate to use Github Workflows from Travis-Ci
RELNOTES=N/A PiperOrigin-RevId: 354106317
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml67
1 files changed, 67 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 000000000..21654a2f3
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,67 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+
+jobs:
+ bazel-test:
+ name: 'Bazel tests'
+ runs-on: ubuntu-latest
+ steps:
+ - name: 'Check out repository'
+ uses: actions/checkout@v2
+ - 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: 'Run Bazel tests'
+ run: bazel test --test_output=errors //...
+ shell: bash
+ - name: 'Install local snapshot'
+ run: ./util/install-local-snapshot.sh
+ shell: bash
+ artifact-local-tests:
+ name: 'Artifact local tests'
+ needs: bazel-test
+ runs-on: ubuntu-latest
+ steps:
+ - name: 'Check out repository'
+ uses: actions/checkout@v2
+ - 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: 'Gradle tests'
+ run: ./util/run-local-gradle-tests.sh
+ shell: bash
+ artifact-emulator-tests:
+ name: 'Artifact emulator tests'
+ needs: bazel-test
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ agp: ['4.1.0', '4.2.0-beta01']
+ steps:
+ - name: 'Check out repository'
+ uses: actions/checkout@v2
+ - 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: 'Gradle Android tests (AGP ${{ matrix.agp }})'
+ run: ./util/run-local-gradle-android-tests.sh "${{ matrix.agp }}"
+ shell: bash
+ env:
+ ADB_INSTALL_TIMEOUT: 10 # In Minutes