Skip to content

Commit

Permalink
chore: Add bun tests to CI (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Jun 15, 2023
1 parent 76b877b commit 061942e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- run: pnpm install --frozen-lockfile
if: ${{ matrix.node-version >= 16 }}
- run: pnpm run test
- run: pnpm run test-raw
- run: pnpm run test:raw
- name: Report coverage
if: ${{ matrix.node-version == 20 && github.repository_owner == 'maxmilton' }}
run: |
Expand All @@ -63,6 +63,23 @@ jobs:
./cc-test-reporter upload-coverage
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
test-bun:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: build
path: packages
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun add -g pnpm
- run: pnpm install --frozen-lockfile
- run: bun run test
- run: bun run test:raw
lint:
needs: build
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint:js": "eslint --ignore-path .gitignore --ext .cjs,.js,.jsx,.mjs,.ts,.tsx .",
"lint:ts": "tsc --project tsconfig.lint.json",
"test": "c8 uvu -r tsm packages '\\/test\\/.+\\.test\\.ts$'",
"test-raw": "uvu packages '\\/test\\/.+\\.test-raw\\.js$'"
"test:raw": "uvu packages '\\/test\\/.+\\.test-raw\\.js$'"
},
"devDependencies": {
"@maxmilton/stylelint-config": "0.0.12",
Expand Down

0 comments on commit 061942e

Please sign in to comment.