Merge pull request #122 from grab/qoute-keys-for-android #571
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Default workflow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
TERM: dumb | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "zulu" | |
java-version: "11" | |
- name: Lint | |
run: | | |
find "$(pwd -P)" -type f \ | |
\( -name "*.bazel" -o -name "WORKSPACE" \) \ | |
-not -path "*/buildsystem/*" \ | |
-exec bazelisk run //:buildifier -- --mode=check -v {} + | |
bazel-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bazel build | |
uses: ./.github/actions/bazel | |
with: | |
bazel-command: build //... | |
cache-key: bazel-build | |
bazel-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Bazel test | |
uses: ./.github/actions/bazel | |
with: | |
bazel-command: test //... | |
cache-key: bazel-test | |
grazel-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: burrunan/[email protected] | |
name: grazel-build | |
with: | |
debug: false | |
job-id: grazel-build | |
read-only: ${{ github.ref != 'refs/heads/master' }} | |
gradle-dependencies-cache-key: | | |
gradle/libs.versions.toml | |
arguments: assembleDebug --scan | |
grazel-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: burrunan/[email protected] | |
name: grazel-test | |
with: | |
debug: false | |
job-id: grazel-test | |
read-only: ${{ github.ref != 'refs/heads/master' }} | |
gradle-dependencies-cache-key: | | |
gradle/libs.versions.toml | |
arguments: test --scan | |
grazel-gradle-plugin-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: burrunan/[email protected] | |
name: grazel-gradle-plugin-test | |
with: | |
debug: false | |
job-id: grazel-gradle-plugin-test | |
build-root-directory: grazel-gradle-plugin | |
read-only: ${{ github.ref != 'refs/heads/master' }} | |
gradle-dependencies-cache-key: | | |
gradle/libs.versions.toml | |
arguments: test --scan | |
migrate-to-bazel-validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Bazelisk | |
uses: bazelbuild/setup-bazelisk@v2 | |
- name: Install JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: "11" | |
- uses: burrunan/[email protected] | |
name: migrate-to-bazel-validation | |
with: | |
debug: false | |
job-id: migrate-to-bazel-validation | |
read-only: ${{ github.ref != 'refs/heads/master' }} | |
gradle-dependencies-cache-key: | | |
gradle/libs.versions.toml | |
arguments: migrateToBazel --scan |