Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,26 @@ on:

jobs:
publish-package:
runs-on: ubuntu:latest
runs-on: ubuntu-latest
environment: publish

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install
uses: oven-sh/setup-bun@v2
run: bun install
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install packages
uses: bahmutov/npm-install@v1

- name: Run build
run: bun run build
run: npm run build

- name: Run tests
run: bun run test
run: npm run test

- name: Semantic release
uses: cycjimmy/semantic-release-action@v3
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install packages
uses: oven-sh/setup-bun@v2
run: bun install
uses: bahmutov/npm-install@v1

- name: Run build
run: bun run build
run: npm run build

- name: Run tests
run: bun run test
run: npm run test
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ module.exports = function(config) {
customLaunchers: {
Chrome_without_security: {
base: 'Chrome',
flags: ['--disable-web-security'],
flags: ['--disable-web-security', '--no-sandbox'],
},

ChromeHeadless_without_security: {
base: 'ChromeHeadless',
flags: ['--disable-web-security'],
flags: ['--disable-web-security', '--no-sandbox'],
},
},

Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"karma": "^6.4.1",
"karma": "^6.4.4",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
"karma-chrome-launcher": "^3.2.0",
"karma-jasmine": "^5.1.0",
"prettier": "^1.19.1",
"puppeteer": "^1.18.1",
Expand Down