Skip to content

Commit

Permalink
chore(ci): update matrix & images
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 29, 2024
1 parent 35bbaa0 commit a8c6820
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ on: [push, pull_request]

jobs:
test:
name: Node.js v${{ matrix.nodejs }}
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }})
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12, 14, 16, 18]
nodejs: [8, 10, 12, 14, 16, 18, 20]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs }}

- name: Install
run: npm install

- name: Test
if: matrix.nodejs < 18
if: matrix.nodejs < 20
run: npm test

- name: Test w/ Coverage
if: matrix.nodejs >= 18
if: matrix.nodejs >= 20
run: |
npm install -g c8
c8 --include=src npm test
- name: Report
if: matrix.nodejs >= 18 && matrix.os == 'ubuntu-latest'
if: matrix.nodejs >= 20 && matrix.os == 'ubuntu-latest'
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down
1 change: 0 additions & 1 deletion test/async.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test } from 'uvu';
import { homedir } from 'os';
import { join, resolve } from 'path';
import * as assert from 'uvu/assert';
import escalade from '../src/async';
Expand Down
1 change: 0 additions & 1 deletion test/sync.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { test } from 'uvu';
import { homedir } from 'os';
import { join, resolve } from 'path';
import * as assert from 'uvu/assert';
import escalade from '../src/sync';
Expand Down

0 comments on commit a8c6820

Please sign in to comment.