Skip to content

Add LICENSE

Add LICENSE #7

Workflow file for this run

# 🚀 This workflow tests a Node.js (npm) package across different Node.js versions and on multiple operating systems 🌐
# Additionally, it checks for any security risks in the dependencies 🔒
# For more information, see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs 📚
name: Node.js Package Test 🎉
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [17.x, 18.x, 19.x, 20.x, 21.x]
steps:
- name: 📁 Checkout code
uses: actions/checkout@v4
- name: 📦 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: 📦 Install dependencies
run: npm install
- name: 🚀 Run the application
run: node .
- name: 🔒 Check for security risks
run: npm audit --json > audit-result.json
id: audit
- name: 📣 Display audit results
run: cat audit-result.json