diff --git a/.github/workflows/build_lint.yml b/.github/workflows/build_lint.yml new file mode 100644 index 00000000..597e2bdf --- /dev/null +++ b/.github/workflows/build_lint.yml @@ -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 + diff --git a/package.json b/package.json index 982b43f4..7aa6ef9e 100644 --- a/package.json +++ b/package.json @@ -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" },