Skip to content
Open
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
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: test

on: [push, pull_request]
on:
pull_request:
branches: [main, master]
types: [opened, synchronize]
push:
branches: [main, master]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [22]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: yarn

- name: Install global dependencies
run: yarn add nyc coveralls -g
cache: "npm"

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

- name: Run linter
run: npm run lint
Expand All @@ -32,6 +34,6 @@ jobs:
run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
Loading