Skip to content

chore(deps-dev): bump eslint-plugin-jest from 27.4.2 to 28.2.0 #8

chore(deps-dev): bump eslint-plugin-jest from 27.4.2 to 28.2.0

chore(deps-dev): bump eslint-plugin-jest from 27.4.2 to 28.2.0 #8

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
paths:
- "**.jsx?"
- "**.tsx?"
- "lib/**"
- "test/**"
- "package.json"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "**.jsx?"
- "**.tsx?"
- "lib/**"
- "test/**"
- "package.json"
- ".github/workflows/ci.yml"
env:
default_node_version: "lts/*"
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node_version: ["lts/*"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v3
name: Install pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm i
- name: Test
run: pnpm run test
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{env.default_node_version}}
- uses: pnpm/action-setup@v3
name: Install pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm i
- name: Coverage
run: pnpm run test:lcov
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{env.default_node_version}}
- uses: pnpm/action-setup@v3
name: Install pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm i
- name: Lint
run: |
pnpm run lint