From f71611390aace08409947ea779e5113cc9cbada8 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again <5165674+make-github-pseudonymous-again@users.noreply.github.com> Date: Sat, 23 Mar 2024 23:21:01 +0100 Subject: [PATCH] :construction: progress: First draft for smoke-testing build. --- .github/workflows/ci:build.yml | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.github/workflows/ci:build.yml b/.github/workflows/ci:build.yml index 5915b41da..6cbebb0b8 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