Skip to content

Commit

Permalink
Improve ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarLob committed Jan 8, 2025
1 parent 4ee53a9 commit ba3a2a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
branches:
- master
pull_request_target:
types: [labeled]
branches:
- master
env:
NODE_VERSION: 18
YARN_VERSION: 1.22.22
permissions: {}
jobs:
backend-lint:
runs-on: ubuntu-22.04
steps:
- if: github.event.pull_request.mergeable == 'false'
- if: github.event.pull_request.mergeable == 'false' || !contains(github.event.pull_request.labels.*.name, 'run tests')
name: Exit if PR is not mergeable
run: exit 1
- uses: actions/checkout@v4
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:
frontend-lint:
runs-on: ubuntu-22.04
steps:
- if: github.event.pull_request.mergeable == 'false'
- if: github.event.pull_request.mergeable == 'false' || !contains(github.event.pull_request.labels.*.name, 'run tests')
name: Exit if PR is not mergeable
run: exit 1
- uses: actions/checkout@v4
Expand Down

0 comments on commit ba3a2a5

Please sign in to comment.