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: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
interval: 'weekly'
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
71 changes: 43 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test
name: Tests

on:
push:
Expand All @@ -10,53 +10,68 @@ on:
branches: [main]

jobs:
lint-js:
name: Lint JS
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Lint JS
run: npx --yes oxlint@latest -D perf
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: projectwallace/css-code-quality

lint-package:
name: Lint package
check:
name: Check types
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
cache: npm
- run: npm install --no-fund --no-audit --ignore-scripts
node-version: 22
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm run check

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm run build
- name: Run publint
run: npx --yes publint

check-types:
name: Check types
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
cache: npm
- run: npm install --no-fund --no-audit --ignore-scripts
- name: Check types
run: npm run check
node-version: 22
- run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm run lint

test:
name: Unit tests
npm-audit:
name: Audit packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout code
uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
cache: npm
- run: npm install --no-fund --no-audit --ignore-scripts
- run: npm run build
- run: npm test
node-version: 22
- run: npm audit --audit-level=high
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
dist
node_modules
.DS_Store
7 changes: 7 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": [],
"useTabs": true,
"semi": false,
"singleQuote": true
}
Loading