mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
fix(ci): allow pull_request workflow to run in merge queues
This commit is contained in:
parent
8f56aa6ede
commit
5f57b80b4f
27
.github/workflows/pull_request.yml
vendored
27
.github/workflows/pull_request.yml
vendored
@ -5,35 +5,14 @@ on:
|
|||||||
name: Check pull request
|
name: Check pull request
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref }}
|
group: ${{ github.head_ref || github.ref_name }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SENTRY_DSN: 'https://public_key@example.com/project_id'
|
SENTRY_DSN: 'https://public_key@example.com/project_id'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-changed-files:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
||||||
|
|
||||||
- name: Check if relevant files have changed
|
|
||||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
|
|
||||||
id: service-changed
|
|
||||||
with:
|
|
||||||
result-encoding: string
|
|
||||||
script: |
|
|
||||||
const script = require('.github/check-changed-files.js')
|
|
||||||
return await script({github, context})
|
|
||||||
|
|
||||||
- name: Fail if no files changed
|
|
||||||
if: "${{ steps.service-changed.outputs.result != 'true' }}"
|
|
||||||
shell: bash
|
|
||||||
run: exit 1
|
|
||||||
|
|
||||||
check-codestyle:
|
check-codestyle:
|
||||||
needs: [ "check-changed-files" ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -64,7 +43,6 @@ jobs:
|
|||||||
path: build/reports/kotlin-build/
|
path: build/reports/kotlin-build/
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
needs: [ "check-changed-files" ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -102,7 +80,6 @@ jobs:
|
|||||||
path: build/reports/kotlin-build/
|
path: build/reports/kotlin-build/
|
||||||
|
|
||||||
build-apks:
|
build-apks:
|
||||||
needs: [ "check-changed-files" ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -133,7 +110,6 @@ jobs:
|
|||||||
path: build/reports/kotlin-build/
|
path: build/reports/kotlin-build/
|
||||||
|
|
||||||
check-api:
|
check-api:
|
||||||
needs: [ "check-changed-files" ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -164,7 +140,6 @@ jobs:
|
|||||||
path: build/reports/kotlin-build/
|
path: build/reports/kotlin-build/
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
needs: [ "check-changed-files" ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
Loading…
x
Reference in New Issue
Block a user