Skip to content

Refactor/reschedule #127

Refactor/reschedule

Refactor/reschedule #127

Workflow file for this run

name: ci
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
- master
- dev
paths-ignore:
- ".devcontainer/**"
# - '.github/**'
- ".vscode/**"
- ".gitignore"
- ".npmignore"
- "LICENSE"
- "README.md"
push:
paths-ignore:
- ".devcontainer/**"
# - '.github/**'
- ".vscode/**"
- ".gitignore"
- ".npmignore"
- "LICENSE"
- "README.md"
branches:
- main
- master
- dev
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
strategy:
matrix:
node: [18]
platform: [ubuntu-latest, macos-latest, windows-latest]
name: "${{matrix.platform}} / Node.js ${{ matrix.node }}"
runs-on: ${{matrix.platform}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5.0
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: '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 install --no-frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Run tests and collect coverage
run: pnpm run test::coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true