-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.07 KB
/
on_pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: On Pull Request
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
onPullRequestJob:
env:
ANDROID_HOME: ${{ github.workspace }}/bin/androidSdk
permissions:
# Set permissions for ${{ secrets.GITHUB_TOKEN }}
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
contents: read
packages: read
name: Verify code base when pull request is published/updated
runs-on: ubuntu-latest
# runs-on: ubuntu-20.04-16core # Larger github runner, with KVM acceleration
steps:
- name: Run pull request workflow
uses: govuk-one-login/mobile-android-pipelines@3dd3a4603b806128f9da211ea261f658b734cbfb
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-actor: ${{ secrets.MODULE_FETCH_TOKEN_USERNAME }}