From d73c07d11f8bc5c7f17d583c8c7f7e64c36d6379 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 19 Aug 2022 12:08:31 +0200 Subject: [PATCH] ci: test module with built package --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f30c3c4..a7bc03d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,9 @@ jobs: test-fixtures: runs-on: ${{ matrix.os }} + needs: + - build + strategy: matrix: os: [ubuntu-latest, windows-latest] @@ -81,17 +84,27 @@ jobs: - name: Install dependencies run: yarn --immutable + # TODO: address conflict between jiti + @vitejs/plugin-vue + - name: Restore dist cache + uses: actions/cache@v3 + with: + path: packages/*/dist + key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }} + - name: Test (fixtures) run: yarn test:fixtures - # - name: Test (fixtures with dev) - # run: yarn test:fixtures:dev - # env: - # NODE_OPTIONS: --max-old-space-size=8192 + - name: Test (fixtures with dev) + run: yarn test:fixtures:dev + env: + NODE_OPTIONS: --max-old-space-size=8192 test-fixtures-webpack: runs-on: ${{ matrix.os }} + needs: + - build + strategy: matrix: os: [ubuntu-latest, windows-latest] @@ -107,6 +120,13 @@ jobs: - name: Install dependencies run: yarn --immutable + # TODO: address conflict between jiti babel transform + @vitejs/plugin-vue + - name: Restore dist cache + uses: actions/cache@v3 + with: + path: packages/*/dist + key: ${{ matrix.os }}-node-v${{ matrix.node }}-${{ github.sha }} + - name: Test (fixtures) run: yarn test:fixtures:webpack