From 8924fb00a61e1a5969b00a7fab104708e85b40c6 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Sun, 26 May 2024 12:43:06 -0400 Subject: [PATCH] Reuse workflow from nodenv/.github --- .github/workflows/examples.yml | 4 ++-- .github/workflows/test.yml | 15 ++------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 71cd887..f35c8d9 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -6,7 +6,7 @@ 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: @@ -14,7 +14,7 @@ jobs: 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 }}" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e11d216..84c230b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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