Skip to content
Closed
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
14 changes: 0 additions & 14 deletions .github/actions/node14/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/node16/action.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/actions/node18/action.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
time: "00:00"
groups:
all-actions:
patterns: [ "*" ]

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
time: "00:00"
42 changes: 42 additions & 0 deletions .github/workflows/build_ts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build typescript

on:
push:
branches:
- master
- release

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

permissions:
contents: write

jobs:
build:
name: Build typescript
runs-on: arc-runners-small
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
fetch: false
default_author: github_actions
message: 'Build: Typescript'
add: 'dist/'
113 changes: 76 additions & 37 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,92 @@
name: Checks
on: [ push ]
on:
push:
branches:
- master
- release
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
Lint:
runs-on: ubuntu-latest
lint:
name: Lint
runs-on: arc-runners-small
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/node18
- name: node version
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Display Node.js version
run: node --version

- name: Lint
run: npm run lint

Node_14:
runs-on: ubuntu-latest
env:
NODE_ENV: test_lib
type-check:
name: Type Check
runs-on: arc-runners-small
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/node14
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- name: node version
run: node --version
- name: Test
run: npm run test
Node_16:
runs-on: ubuntu-latest
env:
NODE_ENV: test_lib
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/node16
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- name: node version
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Display Node.js version
run: node --version
- name: test
run: npm run test
Node_18:
runs-on: ubuntu-latest

- name: Type Check
run: npm run type-check

tests:
name: Tests on ${{ matrix.node-version }}
runs-on: arc-runners-small
env:
NODE_ENV: test_lib
strategy:
fail-fast: false
matrix:
node-version: [ 18.x, 20.x, 21.x, 22.x ]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/node18
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- name: node version

- name: Display Chrome version
run: chrome --version

- name: Display Node.js version
run: node --version
- name: test

- name: Run tests
run: npm run test
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
2 changes: 1 addition & 1 deletion dist/hstest/chromium/browser.js.map

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

12 changes: 8 additions & 4 deletions dist/hstest/environment/element.js

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

2 changes: 1 addition & 1 deletion dist/hstest/environment/element.js.map

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

4 changes: 4 additions & 0 deletions dist/hstest/environment/page.js

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

Loading