diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2021-08-29 11:45:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 11:45:13 +0000 |
commit | 78deab34b70ff8fad90ea3587cf52559c73c93c5 (patch) | |
tree | 73e8f236474fa3f8bb39f80d290c4334db86719c /.github | |
parent | 7adde523e4b84f47ba96dcfd23a692eb64d1d74e (diff) | |
parent | 7e04f30b02f6f134ae65feddadf0b0b831322fcb (diff) | |
download | infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar.gz infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar.bz2 infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar.lz infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar.xz infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.tar.zst infinity-for-reddit-78deab34b70ff8fad90ea3587cf52559c73c93c5.zip |
Merge pull request #406 from Skyluker4/github-actions
Add Automated Workflows
Diffstat (limited to '.github')
-rw-r--r-- | .github/dependabot.yml | 6 | ||||
-rw-r--r-- | .github/workflows/build.yml | 33 | ||||
-rw-r--r-- | .github/workflows/codeql-analysis.yml | 33 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..85e02951 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: gradle + directory: / + schedule: + interval: daily diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..be209dbe --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set-up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + + - name: Grant Execute Permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew build -x lint + + - name: Upload apk + uses: actions/upload-artifact@v2 + with: + name: Infinity-${{github.sha}} + path: app/build/outputs/apk/ + if-no-files-found: error diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 00000000..f4dc0ba2 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,33 @@ +name: CodeQL + +on: + push: + branches: master + pull_request: + workflow_dispatch: + schedule: + - cron: '0 12 * * *' + +jobs: + Analyze: + runs-on: ubuntu-latest + + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: java + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 |