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
29 changes: 29 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## Jira Link

<!-- Link to the Jira ticket (if applicable) -->

## Description

<!-- Describe your changes in detail -->

## How has this been tested?

<!-- Please describe how you tested your changes -->

## Screenshots (if appropriate)

<!-- Add screenshots if UI changes are involved -->

## Types of changes

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Checklist

- [ ] My code follows the code style of this project. (run lint)
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
name: Continuous Integration
on: [push, pull_request]
on:
push:
branches-ignore:
- "master"

name: Run Tests

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}

name: run tests
strategy:
fail-fast: false
matrix:
node: ["24.x"]
os: [ubuntu-latest]
node-version: ["22", "20"]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout project
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
check-latest: true
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: npm ci
run: npm install

- name: Install playwright webkit
run: npx playwright install-deps webkit

- name: Test
run: npx playwright install && npm run test
- name: Install browsers
run: npx playwright install

- name: Run tests
run: npm run test
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ bower_components
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
build/
dist/

# Dependency directories
node_modules/
Expand Down
6 changes: 0 additions & 6 deletions .mocharc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
>=20.x
>=24.x
6 changes: 3 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import toruslabsJavascript from "@toruslabs/eslint-config-javascript";
import toruslabsTypescript from "@toruslabs/eslint-config-typescript";

export default [
...toruslabsJavascript,
...toruslabsTypescript,
{
ignores: ["build/"],
ignores: ["dist/"],
rules: {
"no-redeclare": ["error", { builtinGlobals: false }],
},
Expand Down
5 changes: 0 additions & 5 deletions main.js

This file was deleted.

Loading