diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bb98174..9fd2282c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,9 +21,6 @@ jobs: - name: Make gradlew executable run: chmod +x ./gradlew - - name: Spotless check - run: ./gradlew spotlessCheck - - name: Build debug APK run: ./gradlew assembleDebug --warning-mode all --stacktrace diff --git a/.github/workflows/remove-old-artifacts.yml b/.github/workflows/remove-old-artifacts.yml new file mode 100644 index 00000000..7d3aaa1f --- /dev/null +++ b/.github/workflows/remove-old-artifacts.yml @@ -0,0 +1,22 @@ +name: Remove old artifacts + +on: +# push: +# branches: [ master ] + + schedule: + # Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month. + - cron: '0 1 */7 * *' + +jobs: + remove-old-artifacts: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Remove old artifacts + uses: c-hive/gha-remove-artifacts@v1 + with: + age: '1 month' + skip-tags: true + skip-recent: 5 \ No newline at end of file diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml new file mode 100644 index 00000000..6ee1984f --- /dev/null +++ b/.github/workflows/spotless.yml @@ -0,0 +1,25 @@ +name: Spotless check + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: '11' + + - name: Make gradlew executable + run: chmod +x ./gradlew + + - name: Spotless check + run: ./gradlew spotlessCheck diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 4eec7a1d..bc68000d 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -46,5 +46,10 @@