Skip to content

Commit

Permalink
Reuse workflow from nodenv/.github
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed May 26, 2024
1 parent f073a97 commit 8924fb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./setup-nodenv # normally nodenv/actions/setup-nodenv@v2
- uses: ./setup-nodenv # users should pin to a vN ref
- run: nodenv --version

node-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: nodenv
uses: ./node-version # normally nodenv/actions/node-version@v2
uses: ./node-version # users should pin to a vN ref
- uses: actions/setup-node@v4
with:
node-version: "${{ steps.nodenv.outputs.node-version }}"
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@ name: Test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm cit

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: github/super-linter/slim@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm-cit-lint:
uses: nodenv/.github/.github/workflows/test.yml@v3

0 comments on commit 8924fb0

Please sign in to comment.