mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-15 11:59:37 +03:00
383d436b63
* fix: github actions * fix: node setup * fix: node setup cache * fix: node and npm * fix: pnpm workspace and .gititnore * fix: pnpm node setup * fix: github actions * fix: lock file * fix: workflow install after setup node * fix: lock file * fix: vue3 tests
48 lines
910 B
YAML
48 lines
910 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x, 18.x, 19.x]
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Install PNPM
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 8
|
|
|
|
- name: Set up Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Install
|
|
run: pnpm install --frozen-lockfile --strict-peer-dependencies
|
|
|
|
- name: Run the lint
|
|
run: pnpm lint
|
|
|
|
- name: Install coverage
|
|
run: pnpm install --global codecov
|
|
|
|
- name: Run the coverage
|
|
run: pnpm cover
|
|
|
|
- name: Run the coverage
|
|
run: codecov
|