Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ on:
branches: [main]

jobs:
lint:
name: Lint JS
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Lint JS
run: npx --yes oxlint@latest -D perf
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm install --ignore-scripts --no-audit
Expand Down
202 changes: 202 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"scripts": {
"build": "microbundle",
"test": "uvu",
"check": "tsc"
"check": "tsc",
"lint": "oxlint -D perf"
},
"devDependencies": {
"@types/css-tree": "^2.3.4",
"microbundle": "^0.15.1",
"oxlint": "^0.2.8",
"typescript": "^5.3.3",
"uvu": "^0.5.6"
},
Expand All @@ -39,4 +41,4 @@
"pretty",
"prettier"
]
}
}