From 662d527f41c00b2e02e6bc6f1e7ae4d5abb5a54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Rozs=C3=ADval?= Date: Mon, 30 Oct 2023 15:57:22 +0100 Subject: [PATCH] ci: clean pipelines configs --- .github/workflows/qa.yaml | 4 +-- .github/workflows/test.yaml | 49 ++++++------------------------------- 2 files changed, 10 insertions(+), 43 deletions(-) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index c5530fb..bfa1b55 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -34,8 +34,8 @@ jobs: with: cache: pnpm node-version: ${{ matrix.node-version }} - - name: Install dependencies --frozen-lockfile - run: pnpm install + - name: Install dependencies + run: pnpm install --frozen-lockfile --prefer-offline - name: Build packages run: pnpm run build - name: Cache setup diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2c41ef2..d2b5a5f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,42 +14,6 @@ env: CACHE_PATH: ./* jobs: - setup: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: - - 20.9.0 - pnpm-version: - - 8.10.0 - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup pnpm v${{ matrix.pnpm-version }} - uses: pnpm/action-setup@v2 - with: - version: ${{ matrix.pnpm-version }} - - name: Setup node.js v${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - cache: pnpm - node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Build packages - run: pnpm run build - - name: Cache setup - uses: actions/cache@v3 - id: cache-setup - with: - key: ${{ env.CACHE_KEY }} - path: ${{ env.CACHE_PATH }} - - name: Set node-version - id: node-version - run: echo "node-version=${{ matrix.node-version }}" >> $GITHUB_OUTPUT - - name: Set pnpm-version - id: pnpm-version - run: echo "pnpm-version={{ matrix.pnpm-version }}" >> $GITHUB_OUTPUT test: needs: setup runs-on: ubuntu-latest @@ -59,17 +23,20 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v2 with: - version: ${{ needs.setup.outputs.pnpm-version }} + version: 8.10.0 - name: Setup node.js uses: actions/setup-node@v3 with: cache: pnpm - node-version: ${{ needs.setup.outputs.node-version }} - - name: Restore setup - uses: actions/cache@v3 - id: restore-setup + node-version: 20.9.0 + - name: Cache + uses: actions/cache@v3p with: key: ${{ env.CACHE_KEY }} path: ${{ env.CACHE_PATH }} + - name: Build + run: | + pnpm install --frozen-lockfile --prefer-offline + pnpm run build - name: Run tests run: pnpm run test