feat: migrating storage to version v3 #506
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: Test and Lint | |
on: | |
pull_request: | |
workflow_call: | |
jobs: | |
build: | |
name: Build with JDK ${{ matrix.java-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [11, 17] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Build | |
run: ./gradlew build -x test | |
- name: Upload build results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
# artifacts name | |
name: build-results-${{ matrix.java-version }} | |
# copy reports of all packages | |
path: '**/build/reports/**' | |
# artifact will expire in 7 days. | |
retention-days: 7 | |
test-and-lint: | |
name: Test and Lint with JDK 17 | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Unit Test | |
run: ./gradlew testDebugUnitTest | |
- name: Lint | |
run: ./gradlew ktlintCheck | |
- name: Upload test and lint results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-and-lint-results | |
path: '**/build/reports/**' | |
retention-days: 7 |