Skip to content

Fix action + unit test scanner #1

Fix action + unit test scanner

Fix action + unit test scanner #1

Workflow file for this run

name: Publish to NPM
on:
pull_request:
branches: ["master"]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup .npmrc
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
# Defaults to the user or organization that owns the workflow file
scope: "@lv00"
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: bun install
- name: Test
run: bun test