Skip to content

Commit

Permalink
feat: befriend Bun and Deno (#2)
Browse files Browse the repository at this point in the history
* feat: befriend Bun and Deno

* ci: fix invalid workflow

* ci: fix invalid workflow

* ci: better test names

* ci: better test versions

* ci: fix test versions
  • Loading branch information
wellwelwel authored Feb 15, 2024
1 parent 313e511 commit 7d11888
Show file tree
Hide file tree
Showing 79 changed files with 1,984 additions and 1,628 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/lib
/ci
/CHANGELOG.md
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"no-restricted-syntax": [
"error",
{
"selector": "ImportDeclaration[source.value=/^\\./][source.value!=/\\.(js(on(c)?)?|(s)?css|svg|ico)$/]",
"selector": "ImportDeclaration[source.value=/^\\./][source.value!=/\\.(js(on(c)?)?|ts|(s)?css|svg|ico)$/]",
"message": "Local imports must have the explicit extension"
}
],
Expand Down
1 change: 1 addition & 0 deletions .github/assets/readme/bun.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .github/assets/readme/deno.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .github/assets/readme/node-js.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .github/assets/readme/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .github/assets/readme/typescript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 70 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
workflow_dispatch:
jobs:
CI:
node:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
Expand All @@ -29,9 +29,9 @@ jobs:
'18',
'19',
'20',
'21',
'latest',
]
name: 🔬 Node ${{ matrix.node-version }}
name: 🔬 Node.js ${{ matrix.node-version }}
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4
Expand All @@ -55,4 +55,70 @@ jobs:
run: npm run build

- name: 🔬 Node ${{ matrix.node-version }}
run: FILTER=${{ matrix.node-version }} npm run test:ci
run: FILTER=node-${{ matrix.node-version }} npm run test:ci

bun:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: ['0.5.3', '01', 'canary']
name: 🔬 Bun ${{ matrix.node-version }}
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🤹🏻‍♀️ Building the Project
run: npm run build

- name: 🔬 Bun ${{ matrix.node-version }}
run: FILTER=bun-${{ matrix.node-version }} npm run test:ci

deno:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
node-version: ['1.30.0', 'latest']
name: 🔬 Deno ${{ matrix.node-version }}
steps:
- name: ➕ Actions - Checkout
uses: actions/checkout@v4

- name: ➕ Actions - Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: ➕ Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-

- name: 📦 Installing Dependencies
run: npm ci

- name: 🤹🏻‍♀️ Building the Project
run: npm run build

- name: 🔬 Deno ${{ matrix.node-version }}
run: FILTER=deno-${{ matrix.node-version }} npm run test:ci
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lib/
/lib
/ci
/CHANGELOG.md
Loading

0 comments on commit 7d11888

Please sign in to comment.