2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

fix: github actions (#224)

* 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
This commit is contained in:
Nikolay Kost
2024-03-25 17:06:15 +02:00
committed by GitHub
parent 17edb9e3e6
commit 383d436b63
13 changed files with 4809 additions and 18253 deletions
+12 -24
View File
@@ -2,6 +2,8 @@ name: Benchmark
on:
push:
branches:
- master
pull_request:
jobs:
@@ -12,36 +14,22 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install PNPM
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Setup Node.js
uses: actions/setup-node@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Bootstrap dependencies
run: npm run build && npm run bootstrap
- name: Build
run: pnpm build
- name: Run benchmark
run: cd benchmark && npm start
run: cd benchmark && pnpm start
+7 -21
View File
@@ -17,33 +17,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install PNPM
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Setup Node.js
uses: actions/setup-node@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Create Release Pull Request or Publish to npm
id: changesets
+28 -41
View File
@@ -1,6 +1,10 @@
name: Tests
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
test:
@@ -11,50 +15,33 @@ jobs:
node-version: [16.x, 18.x, 19.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install PNPM
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install PNPM ${{ matrix.node-version }}
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Get pnpm store directory ${{ matrix.node-version }}
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Install
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ matrix.node-version }}
restore-keys: |
${{ runner.os }}-pnpm-store-${{ matrix.node-version }}
- name: Run the lint
run: pnpm lint
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install coverage
run: pnpm install --global codecov
- name: Install Codecov
run: pnpm install --global codecov
- name: Run the coverage
run: pnpm cover
- name: Bootstrap packages
run: npm run bootstrap
- name: Run the lint
run: npm run lint
- name: Run the coverage
run: npm run cover
- name: Run the coverage
run: codecov
- name: Run the coverage
run: codecov