Skip to content

Commit

Permalink
ci: add linting and testing CI for newest
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <[email protected]>
  • Loading branch information
bnb committed Nov 8, 2024
1 parent b6e7c36 commit 9c4ff55
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint-newest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test Suite: Linter (newest)"

on:
push:
pull_request:
paths:
- 'newest/**'
branches:
- main
workflow_dispatch:
workflow_call:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: current
- name: Run npm install -w newest
run: npm install -w newest
- name: Run npm run lint -w newest
run: npm run lint -w newest
31 changes: 31 additions & 0 deletions .github/workflows/tests-newest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Test Suite: @nodevu/newest"

on:
pull_request:
paths:
- 'newest/**'
branches:
- main
workflow_dispatch:
workflow_call:

jobs:
tests:
if: github.repository == 'cutenode/nodevu'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [current, lts/*, lts/-1]
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install most recent npm
run: npm install -g npm
- name: Run npm install -w newest
run: npm install -w newest
- name: Run npm test -w newest
run: npm test -w newest

0 comments on commit 9c4ff55

Please sign in to comment.