diff --git a/.github/workflows/ci:build.yml b/.github/workflows/ci:build.yml index 97e38d8d6..400fcd367 100644 --- a/.github/workflows/ci:build.yml +++ b/.github/workflows/ci:build.yml @@ -25,6 +25,10 @@ jobs: runs-on: ${{ matrix.platform }} timeout-minutes: 15 + + outputs: + node-version: ${{ steps.meteor-node.outputs.version }} + steps: - name: Checkout 🛎️ uses: actions/checkout@v4 @@ -32,6 +36,13 @@ jobs: - name: Install 💾 uses: meteor-actions/install@v3 + - name: Get Meteor's Node version + id: meteor-node + run: | + echo \ + "version=$(meteor node --version)" \ + >> "$GITHUB_OUTPUT" + - name: Cache build 💽 uses: meteor-actions/cache-build@v3 with: @@ -39,3 +50,41 @@ jobs: - name: Build 🏗️ run: meteor npm run build -- ../dist --architecture ${{ matrix.architecture }} + + - name: Archive build 💽 + uses: actions/upload-artifact@v4 + with: + name: dist + path: ../dist + retention-days: 1 + + + test: + needs: + - build + + strategy: + matrix: + platform: + - ubuntu-latest + + runs-on: ${{ matrix.platform }} + + timeout-minutes: 1 + + steps: + - name: Load build 💽 + uses: actions/download-artifact@v4 + with: + name: dist + path: dist + + - uses: actions/setup-node@v3 + with: + node-version: ${{ needs.build.outputs.node-version }} + + - name: Node WIP + run: node --version + + - name: Dist WIP + run: ls -la dist