Skip to content

fix ci

fix ci #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: setup caching
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: lint code
run: pnpm lint
- name: build packages
run: pnpm build
- run: pnpm test:coverage
- run: pnpm test:report
# run coverage only on ubuntu
- name: Coveralls
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info