Skip to content

Commit 3f7c571

Browse files
authored
Merge pull request #2 from SoulOppen/addtests
Format
2 parents d970da4 + 7eeff59 commit 3f7c571

File tree

7 files changed

+2641
-4459
lines changed

7 files changed

+2641
-4459
lines changed

.github/workflows/cd.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches: [main]
4+
jobs:
5+
deploy:
6+
name: Deploy
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
18+
19+
- name: Install dependencies
20+
run: |
21+
rm -f package-lock.json
22+
npm install
23+
npm ci
24+
- name: build
25+
run: npm run build

.github/workflows/ci.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,28 @@ jobs:
2525
npm install
2626
npm ci
2727
- name: Test
28-
run: npm run test -- --coverage
28+
run: npm run test -- --coverage
29+
style:
30+
name: Style
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- name: Check out code
35+
uses: actions/checkout@v4
36+
37+
- name: Set up Node
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: 22
41+
42+
43+
- name: Install dependencies
44+
run: |
45+
rm -f package-lock.json
46+
npm install
47+
npm ci
48+
- name: Check Format
49+
run: npm run format:check
50+
51+
- name: Check linting
52+
run: npm run lint -- --max-warnings=0

eslint.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig } from "eslint/config";
5+
import pluginSecurity from "eslint-plugin-security";
6+
7+
export default defineConfig([
8+
{
9+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
10+
plugins: { js },
11+
extends: ["js/recommended"],
12+
},
13+
{
14+
files: ["**/*.{js,mjs,cjs,ts,mts,cts}"],
15+
languageOptions: { globals: globals.node },
16+
},
17+
tseslint.configs.recommended,
18+
pluginSecurity.configs.recommended,
19+
]);

0 commit comments

Comments
 (0)