Skip to content

[version 5.x] chore: Bump the pnpm lockfile version to 6.0 and fix tests #933

[version 5.x] chore: Bump the pnpm lockfile version to 6.0 and fix tests

[version 5.x] chore: Bump the pnpm lockfile version to 6.0 and fix tests #933

Workflow file for this run

name: branch
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-
- uses: pnpm/action-setup@v2
with:
version: 6
- uses: actions/setup-node@v2
- run: pnpm i
- run: npm run lint
test:
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-
- uses: pnpm/action-setup@v2
with:
version: 6
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: pnpm i
- run: npm test
if: matrix.os != 'macos-latest' || matrix.node-version != '18.x'
- run: npm run test:coverage
if: matrix.os == 'macos-latest' && matrix.node-version == '18.x'
- uses: codecov/codecov-action@v2
if: matrix.os == 'macos-latest' && matrix.node-version == '18.x'