Skip to content

Commit

Permalink
migrate to biome (#149)
Browse files Browse the repository at this point in the history
* migrate to biome

* add lint job on CI

* bump vitest packages
  • Loading branch information
kremalicious committed Jul 26, 2024
1 parent 177c233 commit 1e1fb12
Show file tree
Hide file tree
Showing 13 changed files with 1,592 additions and 3,144 deletions.
12 changes: 0 additions & 12 deletions .eslintrc.json

This file was deleted.

32 changes: 24 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@ on:
- '**'

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['20']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm run lint

test:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -19,8 +35,8 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['18', '20']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
Expand All @@ -40,8 +56,8 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['18', '20']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
Expand All @@ -53,7 +69,7 @@ jobs:
needs: [test]
if: ${{ success() && github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: coverage-ubuntu-latest-18
Expand All @@ -62,12 +78,12 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

publish:
needs: [test, build]
needs: [lint, test, build]
if: success() && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'

Expand Down
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@kremalicious/config/biome"]
}
Loading

0 comments on commit 1e1fb12

Please sign in to comment.