Skip to content

Commit 3ecc45c

Browse files
authored
Merge pull request #30 from j9t/test/github
Improve system test coverage
2 parents 3ee13c9 + 76ae7c2 commit 3ecc45c

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
name: "Tests"
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
5-
branches:
6-
- main
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
714

815
jobs:
916
test:
10-
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
platform: [ubuntu-latest, macos-latest, windows-latest]
20+
node: ['lts/*', 'current']
21+
name: "Node ${{ matrix.node }} (${{ matrix.platform }})"
22+
runs-on: ${{ matrix.platform }}
1123
steps:
1224
- name: "Check out repository"
1325
uses: actions/checkout@v4
1426
- name: "Set up Node.js"
1527
uses: actions/setup-node@v4
1628
with:
17-
node-version: lts/*
29+
node-version: ${{ matrix.node }}
30+
cache: npm
1831
- name: "Install dependencies"
1932
run: npm ci
2033
- name: "Run Jest tests"

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"test": "node --test bin/obsohtml.test.js"
2424
},
2525
"type": "module",
26-
"version": "1.9.3"
26+
"version": "1.9.4"
2727
}

0 commit comments

Comments
 (0)