Skip to content

Commit

Permalink
chore(ci): revert windows-latest addition
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Jan 17, 2022
1 parent a1581ab commit f049595
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,40 @@ on: [push, pull_request]

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

- name: (env) pnpm
run: npm i -g pnpm@5.18
run: curl -L https://raw.githubusercontent.com/pnpm/self-installer/master/install.js | node

- name: Install
run: pnpm install

- name: (coverage) Install
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
if: matrix.nodejs >= 16
run: pnpm add -g c8

- name: Build
run: pnpm run build

- name: Test
if: matrix.nodejs < 16 || matrix.os != 'ubuntu-latest'
if: matrix.nodejs < 16
run: pnpm test

- name: (coverage) Test
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
if: matrix.nodejs >= 16
run: c8 --include=packages pnpm test

- name: (coverage) Report
if: matrix.nodejs >= 16 && matrix.os == 'ubuntu-latest'
if: matrix.nodejs >= 16
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
Expand Down

0 comments on commit f049595

Please # to comment.