mirror of
https://github.com/bitfireAT/davx5-ose
synced 2024-10-15 15:59:18 +00:00
[CI] Update Github actions
This commit is contained in:
parent
4ee6bfe276
commit
53a446bcf9
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v3
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -18,8 +18,8 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|
24
.github/workflows/test-dev.yml
vendored
24
.github/workflows/test-dev.yml
vendored
|
@ -13,8 +13,8 @@ jobs:
|
||||||
name: Tests without emulator
|
name: Tests without emulator
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create app/build and gradle configuration cache
|
- name: Create app/build and gradle configuration cache
|
||||||
if: ${{ github.ref == 'refs/heads/dev-ose' }}
|
if: ${{ github.ref == 'refs/heads/dev-ose' }}
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator-${{ github.run_id }}
|
key: app_build-tests-without-emulator-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
app/build
|
app/build
|
||||||
- name: Use app/build and gradle configuration cache
|
- name: Use app/build and gradle configuration cache
|
||||||
if: ${{ github.ref != 'refs/heads/dev-ose' }}
|
if: ${{ github.ref != 'refs/heads/dev-ose' }}
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator
|
key: app_build-tests-without-emulator
|
||||||
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
|
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
|
||||||
|
@ -41,12 +41,13 @@ jobs:
|
||||||
- name: Run lint and unit tests
|
- name: Run lint and unit tests
|
||||||
run: ./gradlew app:check
|
run: ./gradlew app:check
|
||||||
- name: Archive results
|
- name: Archive results
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: |
|
path: |
|
||||||
app/build/outputs/lint*
|
app/build/outputs/lint*
|
||||||
app/build/reports
|
app/build/reports
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
test_on_emulator:
|
test_on_emulator:
|
||||||
name: Tests with emulator
|
name: Tests with emulator
|
||||||
|
@ -55,8 +56,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [ 31 ]
|
api-level: [ 31 ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
@ -64,7 +65,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create app/build and gradle configuration cache
|
- name: Create app/build and gradle configuration cache
|
||||||
if: ${{ github.ref == 'refs/heads/dev-ose' }}
|
if: ${{ github.ref == 'refs/heads/dev-ose' }}
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator-${{ github.run_id }}
|
key: app_build-tests-without-emulator-${{ github.run_id }}
|
||||||
path: |
|
path: |
|
||||||
|
@ -72,7 +73,7 @@ jobs:
|
||||||
app/build
|
app/build
|
||||||
- name: Use app/build and gradle configuration cache
|
- name: Use app/build and gradle configuration cache
|
||||||
if: ${{ github.ref != 'refs/heads/dev-ose' }}
|
if: ${{ github.ref != 'refs/heads/dev-ose' }}
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
key: app_build-tests-without-emulator
|
key: app_build-tests-without-emulator
|
||||||
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
|
restore-keys: app_build-tests-without-emulator- # restore cache from dev branch
|
||||||
|
@ -87,7 +88,7 @@ jobs:
|
||||||
sudo udevadm trigger --name-match=kvm
|
sudo udevadm trigger --name-match=kvm
|
||||||
|
|
||||||
- name: Cache AVD and APKs
|
- name: Cache AVD and APKs
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: avd-cache
|
id: avd-cache
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -118,8 +119,9 @@ jobs:
|
||||||
|
|
||||||
- name: Archive results
|
- name: Archive results
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: |
|
path: |
|
||||||
app/build/reports
|
app/build/reports
|
||||||
|
overwrite: true
|
||||||
|
|
Loading…
Reference in a new issue