2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/.github/workflows/test.yml
T
Nikolay Kost f87822f3a3 feat: add ability to publish pre alpha versions in PR #234 (#235)
* feat: add ability to prepublish canary versions

* fix: ci

* fix: pr comment

* fix: ci pr

* fix: ci pr env

* fix: github env name

* fix: github file ignoring

* fix: yml syntax

* fix: codeql

* fix: syntax error

* fix: pnpm version

* fix: remove node 16.x support

* fix: workspace name

* fix: workspace pnpm

* fix: workspace with pnpm

* ci: changeset publish

* ci: changeset pr name

* ci: pr

* ci: fix pr.yml

* ci: fix pr.yml workspaces

* ci: fix steps order in pr.yml

* ci: fix pr publish error

* ci: fix npm publish tag to alpha

* ci: npm publish tag

* ci: npm publish tag

* ci: fix tag with PR number
2024-06-25 21:27:42 +02:00

48 lines
916 B
YAML

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 19.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Install PNPM
uses: pnpm/action-setup@v3
with:
version: 9.4.0
- 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 i --frozen-lockfile --strict-peer-dependencies
- name: Run the lint
run: pnpm run lint
- name: Install coverage
run: pnpm install --global codecov
- name: Run the coverage
run: pnpm run cover
- name: Run the coverage
run: codecov