Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

biomejs, ts 5.6.2, jest => vitest, use tsup to build packages #78

Merged
merged 5 commits into from
Sep 21, 2024
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.yarn/releases/*.js binary linguist-generated=true
yarn.lock binary
8 changes: 8 additions & 0 deletions .github/actions/node-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "node setup"
description: "node setup"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
22 changes: 22 additions & 0 deletions .github/actions/yarn-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "yarn setup"
description: "yarn setup"
runs:
using: "composite"
steps:
- run: |
corepack enable
corepack prepare --activate
shell: bash
- id: yarn-cache-dir
run: |
echo "YARN_CACHE_DIR=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
save-always: true
- run: yarn install
shell: bash
47 changes: 10 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,67 +4,40 @@ concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- uses: actions/cache@v4
with:
path: |
**/.eslintcache
key: lint-${{ hashFiles('**/.eslintcache') }}
restore-keys: |
lint-
- run: yarn install --immutable --immutable-cache
- run: yarn lint
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn check
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- uses: actions/cache@v4
with:
path: |
**/*.tsbuildinfo
key: typecheck-${{ hashFiles('**/*.tsbuildinfo') }}
restore-keys: |
typecheck-
- run: yarn install --immutable --immutable-cache
- run: yarn typecheck
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn test
version-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: |
corepack enable
corepack prepare --activate
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- run: yarn version check
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
branches:
- main
jobs:
publish:
npm:
runs-on: ubuntu-latest
environment: production
concurrency:
group: publish-npm
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable --immutable-cache
- uses: ./.github/actions/node-setup
- uses: ./.github/actions/yarn-setup
- name: bump version
run: |
# git user config
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@

# Swap the comments on the following lines if you don't wish to use zero-installs
# Documentation here: https://yarnpkg.com/features/zero-installs
!.yarn/cache
#.pnp.*
.pnp.*

.idea/
node_modules/
dist/
esm/
*.tsbuildinfo
.eslintcache
.next
.DS_Store*
Loading