Update dependency com.android.tools:common to v31.8.0 #1076
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Project Checkout | |
uses: actions/[email protected] | |
- name: Check typos on source files | |
uses: dotanuki-labs/github-actions/quality/typos@main | |
- name: Lint Markdown files | |
uses: dotanuki-labs/github-actions/quality/markdown@main | |
- name: Check MIT license on source files | |
uses: dotanuki-labs/github-actions/foss/check-licenses@main | |
with: | |
file-patterns: "*.sh,*.bats,*.kt,*.kts" | |
license: "mit" | |
build: | |
runs-on: ubuntu-24.04 | |
needs: docs | |
strategy: | |
matrix: | |
jdk: [ '11', '17', '21' ] | |
steps: | |
- name: Project Checkout | |
uses: actions/[email protected] | |
- name: Lint Bash files | |
uses: dotanuki-labs/github-actions/quality/bash@main | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.jdk }} | |
- name: Setup Gradle build | |
uses: gradle/actions/[email protected] | |
with: | |
gradle-home-cache-strict-match: false | |
gradle-home-cache-cleanup: true | |
- name: Setup Dependency Submission | |
uses: gradle/actions/[email protected] | |
- name: Run Gradle build | |
id: build | |
run: ./gradlew build assembleExecutable --scan | |
- name: Run acceptance tests | |
run: | | |
sudo apt-get update >/dev/null | |
sudo apt-get install -y bats >/dev/null | |
bats src/test/bash/acceptance.bats | |
- name: Archive executable | |
uses: actions/[email protected] | |
with: | |
name: aaw-executable-jdk-${{ matrix.jdk }} | |
path: build/bin | |
e2e: | |
runs-on: ubuntu-24.04 | |
needs: build | |
steps: | |
- name: Project Checkout | |
uses: actions/[email protected] | |
- name: Setup JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: Fetch executable from previous build | |
uses: actions/[email protected] | |
- name: Add binary to the CLI path | |
run: | | |
chmod +x aaw-executable-jdk-11/aaw | |
echo "$GITHUB_WORKSPACE/aaw-executable-jdk-11" >> "$GITHUB_PATH" | |
- name: Run E2E tests | |
run: | | |
sudo apt-get update >/dev/null | |
sudo apt-get install -y bats >/dev/null | |
bats src/test/bash/e2e.bats | |
secops: | |
if: github.ref == 'refs/heads/main' | |
permissions: | |
security-events: read | |
runs-on: ubuntu-24.04 | |
needs: build | |
steps: | |
- name: Project Checkout | |
uses: actions/[email protected] | |
- name: Evaluate CVEs for the current Git sha | |
run: ./scripts/secops.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.sha }} | |
- name: Archive SBOM | |
uses: actions/[email protected] | |
with: | |
name: sbom | |
path: aaw-sbom-${{ github.sha }}.json |