Skip to content

Commit

Permalink
Simplify PR test approval workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
F21 committed Mar 7, 2024
1 parent cdc3645 commit a4fbd3d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,29 @@ on:
pull_request_target:

jobs:
lint:
approve-pr-tests:
runs-on: ubuntu-latest
environment:
name: "Acceptance Tests"
name: "Pull Request Tests"
steps:
- run: "echo 'Execution of tests pending approval'"

lint:
needs: ["approve-pr-tests"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- run: npm ci
- run: npm run lint

test:
needs: ["approve-pr-tests", "lint"]
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
environment:
name: "Acceptance Tests"
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit a4fbd3d

Please sign in to comment.