Skip to content

Commit c6f0ea6

Browse files
authored
Merge pull request #118 from nodenv/test-workflows
Bump nodenv reusable workflows
2 parents ce8776d + 0ef8afe commit c6f0ea6

2 files changed

Lines changed: 11 additions & 24 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ on:
66
workflow_dispatch:
77

88
permissions: {}
9-
109
jobs:
1110
test:
12-
uses: nodenv/.github/.github/workflows/test.yml@v5
11+
uses: nodenv/.github/.github/workflows/test.yml@v6
1312
with: { npm: false }
1413
permissions:
1514
contents: read
@@ -21,12 +20,10 @@ jobs:
2120
brew-audit:
2221
runs-on: macos-latest
2322
steps:
24-
- name: Harden the runner (Audit all outbound calls)
25-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
26-
with:
27-
egress-policy: audit
28-
23+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
24+
with: { egress-policy: audit }
2925
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
3027
- run: brew tap nodenv/nodenv .
3128
- name: brew audit
3229
run: |
@@ -37,12 +34,10 @@ jobs:
3734
brew-install:
3835
runs-on: macos-latest
3936
steps:
40-
- name: Harden the runner (Audit all outbound calls)
41-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
42-
with:
43-
egress-policy: audit
44-
37+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
38+
with: { egress-policy: audit }
4539
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40+
4641
- run: brew tap nodenv/nodenv .
4742
- name: brew install
4843
run: |

.github/workflows/tests.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,20 @@ jobs:
1919
contents: read
2020
pull-requests: read
2121
steps:
22-
- name: Harden the runner (Audit all outbound calls)
23-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
24-
with:
25-
egress-policy: audit
26-
27-
- name: Set up Homebrew
28-
id: set-up-homebrew
22+
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
23+
with: { egress-policy: audit }
24+
- id: set-up-homebrew
2925
uses: Homebrew/actions/setup-homebrew@6c79ae0677a9b0b8046a936b4ada8980885eafb8 # main
3026
with:
3127
token: ${{ github.token }}
32-
33-
- name: Cache Homebrew Bundler RubyGems
34-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
28+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3529
with:
3630
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
3731
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
3832
restore-keys: ${{ matrix.os }}-rubygems-
3933

4034
- run: brew test-bot --only-cleanup-before
41-
4235
- run: brew test-bot --only-setup
43-
4436
- run: brew test-bot --only-tap-syntax
4537
- run: brew test-bot --only-formulae
4638
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)