Skip to content

Commit

Permalink
[CI] Update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Feb 2, 2024
1 parent 4ee6bfe commit 53a446b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/test-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ jobs:
name: Tests without emulator
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/actions/setup-gradle@v3

- name: Create app/build and gradle configuration cache
if: ${{ github.ref == 'refs/heads/dev-ose' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: app_build-tests-without-emulator-${{ github.run_id }}
path: |
.gradle/configuration-cache
app/build
- name: Use app/build and gradle configuration cache
if: ${{ github.ref != 'refs/heads/dev-ose' }}
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
key: app_build-tests-without-emulator
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
Expand All @@ -41,12 +41,13 @@ jobs:
- name: Run lint and unit tests
run: ./gradlew app:check
- name: Archive results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
app/build/outputs/lint*
app/build/reports
overwrite: true

test_on_emulator:
name: Tests with emulator
Expand All @@ -55,24 +56,24 @@ jobs:
matrix:
api-level: [ 31 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2

- name: Create app/build and gradle configuration cache
if: ${{ github.ref == 'refs/heads/dev-ose' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: app_build-tests-without-emulator-${{ github.run_id }}
path: |
.gradle/configuration-cache
app/build
- name: Use app/build and gradle configuration cache
if: ${{ github.ref != 'refs/heads/dev-ose' }}
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
key: app_build-tests-without-emulator
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
Expand All @@ -87,7 +88,7 @@ jobs:
sudo udevadm trigger --name-match=kvm
- name: Cache AVD and APKs
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down Expand Up @@ -118,8 +119,9 @@ jobs:

- name: Archive results
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
app/build/reports
overwrite: true

0 comments on commit 53a446b

Please sign in to comment.