Skip to content

Commit

Permalink
ci: add linting and testing for @nodevu/fetchindex
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 f7d2c47 commit 208cb6a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint-fetchindex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Test Suite: Linter (@nodevu/fetchindex)"

on:
push:
pull_request:
paths:
- 'fetchindex/**'
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 fetchindex
run: npm install -w fetchindex
- name: Run npm run lint -w fetchindex
run: npm run lint -w fetchindex
22 changes: 22 additions & 0 deletions .github/workflows/publish-newest copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish @nodevu/fetchindex to npm
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 'latest'
registry-url: 'https://registry.npmjs.org'
- run: npm install -w fetchindex
- run: npm run lint -w fetchindex
- run: npm run coverage -w fetchindex
- run: npm publish --provenance --access public -w fetchindex
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 208cb6a

Please sign in to comment.