Skip to content

Commit

Permalink
ci: add linter and tests for opt
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <hello@bnb.im>
  • Loading branch information
bnb committed Nov 19, 2024
1 parent 006f853 commit 7f20005
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-opt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test Suite: Linter (@nodevu/opt)"

on:
push:
pull_request:
paths:
- 'opt/**'
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 opt
run: npm install -w opt
- name: Run npm run lint -w opt
run: npm run lint -w opt
31 changes: 31 additions & 0 deletions .github/workflows/tests-core copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Test Suite: @nodevu/opt"

on:
pull_request:
paths:
- 'opt/**'
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 opt
run: npm install -w opt
- name: Run npm test -w opt
run: npm test -w opt

0 comments on commit 7f20005

Please sign in to comment.