Skip to content

Commit

Permalink
ci: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Masquerade-Circus committed Dec 10, 2024
1 parent ba55a90 commit 2b6d212
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Use Node.js 18.x"
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: npm run build:source
- run: npm run test
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && success()
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm run coverage
- name: Set up Bun
run: |
curl -fsSL https://bun.sh/install | bash
echo "::add-path::$(bun env | grep PATH | cut -d'=' -f2 | tr -d '\"')"
- name: Install dependencies
run: bun install
- name: Run tests
run: bun test
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && success()
name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dev:web": "browser-sync start --config 'www/bs-config.js'",
"build": "bun run build:source && bun run remark",
"build:source": "cross-env NODE_ENV=production bun run source.js",
"test": "cross-env NODE_ENV=development bun test --bail",
"test": "cross-env NODE_ENV=development bun test --bail --coverage --coverage-reporter=lcov --coverage-reporter=text",
"remark": "remark . -o",
"commit": "git add . && git-cz && git push",
"release": "release-it --verbose",
Expand Down
4 changes: 2 additions & 2 deletions test/node_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ span.hello{display: inline-block}

it("should inline js", async () => {
const { raw: indexTs } = await inline("./lib/index.ts", { compact: true, noValidate: true });
const { raw: indexOld } = await inline("./bench/index-old.js", { compact: true });
// const { raw: indexOld } = await inline("./bench/index-old.js", { compact: true });
// eslint-disable-next-line no-console
console.log(indexTs.length);
// eslint-disable-next-line no-console
console.log(indexOld.length);
// console.log(indexOld.length);
});

it("should convert tsx to hyperscript by default", async () => {
Expand Down

0 comments on commit 2b6d212

Please sign in to comment.