Skip to content

Commit

Permalink
Merge pull request #31 from alphagov/PP-12687-dependency-review-workflow
Browse files Browse the repository at this point in the history
PP-12687: Add dependency review workflow
  • Loading branch information
katstevens authored Nov 12, 2024
2 parents 2d8de59 + 8b01d40 commit 67fd2e7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run tests

on:
pull_request:
workflow_dispatch:
workflow_call:

permissions:
Expand All @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR

on:
pull_request:

permissions:
contents: read

jobs:
tests:
uses: ./.github/workflows/_run-tests.yml

dependency-review:
name: Dependency Review scan
uses: alphagov/pay-ci/.github/workflows/_run-dependency-review.yml@master
2 changes: 1 addition & 1 deletion .github/workflows/prevent-merge-if-release-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- name: Check for unmerged release
id: check_pr
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
env:
THIS_PR_NUMBER: ${{ github.event.pull_request.number }}
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ permissions:

jobs:
unit-tests:
uses: ./.github/workflows/run-tests.yml
uses: ./.github/workflows/_run-tests.yml
publish:
needs: unit-tests
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[automated release]')"
steps:
- name: Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
with:
node-version-file: '.nvmrc'
cache: 'npm'
Expand Down

0 comments on commit 67fd2e7

Please sign in to comment.