From 204e5b31c1b2b0ac6f7d62407f6aac35a748f0fe Mon Sep 17 00:00:00 2001 From: Valentin Agachi Date: Thu, 17 Aug 2023 14:52:57 +0200 Subject: [PATCH] fixup! docs: Update benchmark with Papr v14 and node.js v18 --- .github/workflows/benchmark.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/ci.yaml | 7 ------- 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/benchmark.yaml diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml new file mode 100644 index 000000000..fc9375765 --- /dev/null +++ b/.github/workflows/benchmark.yaml @@ -0,0 +1,26 @@ +name: Benchmark + +on: + push: + branches: [test/benchmark-node-v18-papr-v14] + # TODO: cron + +jobs: + benchmark: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.5.3 + - uses: pnpm/action-setup@v2.4.0 + with: + version: 8 + - uses: actions/setup-node@v3.7.0 + with: + node-version-file: 'package.json' + cache: 'pnpm' + - uses: tj-actions/docker-run@v2 + with: + image: mongo:6.0.4-jammy + name: mongo + - run: node -v + - run: pnpm install --frozen-lockfile + - run: pnpm benchmark diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b592daf9..cd24cb878 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,13 +23,6 @@ jobs: with: node-version: ${{ matrix.node }} cache: 'pnpm' - - uses: actions/cache@v3.3.1 - with: - path: | - node_modules - key: node-${{ matrix.node }}-${{ hashFiles('package.json', 'pnpm-lock.yaml') }} - restore-keys: | - node-${{ matrix.node }}- - run: node -v - run: pnpm install --frozen-lockfile - run: pnpm test:build