Skip to content

Commit dd498e4

Browse files
authored
fix: workflow build yml (#109)
* fix: workflow build yml * fix: test workflow build * fix: Use npm again to try to get tests workign * Update versions to try to fix release * Remove sandbox protection to allow running headless chrome
1 parent 5cea7d1 commit dd498e4

File tree

5 files changed

+38
-30
lines changed

5 files changed

+38
-30
lines changed

.github/workflows/publish-package.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,26 @@ on:
77

88
jobs:
99
publish-package:
10-
runs-on: ubuntu:latest
10+
runs-on: ubuntu-latest
1111
environment: publish
1212

1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4
1616

17-
- name: Install
18-
uses: oven-sh/setup-bun@v2
19-
run: bun install
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
22+
- name: Install packages
23+
uses: bahmutov/npm-install@v1
2024

2125
- name: Run build
22-
run: bun run build
26+
run: npm run build
2327

2428
- name: Run tests
25-
run: bun run test
29+
run: npm run test
2630

2731
- name: Semantic release
2832
uses: cycjimmy/semantic-release-action@v3

.github/workflows/tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
1520
- name: Install packages
16-
uses: oven-sh/setup-bun@v2
17-
run: bun install
21+
uses: bahmutov/npm-install@v1
1822

1923
- name: Run build
20-
run: bun run build
24+
run: npm run build
2125

2226
- name: Run tests
23-
run: bun run test
27+
run: npm run test

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ module.exports = function(config) {
5151
customLaunchers: {
5252
Chrome_without_security: {
5353
base: 'Chrome',
54-
flags: ['--disable-web-security'],
54+
flags: ['--disable-web-security', '--no-sandbox'],
5555
},
5656

5757
ChromeHeadless_without_security: {
5858
base: 'ChromeHeadless',
59-
flags: ['--disable-web-security'],
59+
flags: ['--disable-web-security', '--no-sandbox'],
6060
},
6161
},
6262

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
"eslint-config-airbnb-base": "^15.0.0",
4040
"eslint-config-prettier": "^8.8.0",
4141
"eslint-plugin-import": "^2.27.5",
42-
"karma": "^6.4.1",
42+
"karma": "^6.4.4",
4343
"karma-chai": "^0.1.0",
44-
"karma-chrome-launcher": "^3.1.1",
44+
"karma-chrome-launcher": "^3.2.0",
4545
"karma-jasmine": "^5.1.0",
4646
"prettier": "^1.19.1",
4747
"puppeteer": "^1.18.1",

0 commit comments

Comments
 (0)