Skip to content

Commit

Permalink
Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Oct 19, 2024
1 parent f2afbbd commit cb66cde
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: NPM Build & Lint

on:
workflow_dispatch:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Lint
run: npm run lint

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "src/mod.js",
"scripts": {
"setup": "npm i",
"lint": "npx @biomejs/biome lint ./",
"build": "node ./build.mjs",
"buildinfo": "node ./build.mjs --verbose"
},
Expand Down

0 comments on commit cb66cde

Please sign in to comment.