From 4b8f8a85c07c3ac3c92f931e0431efb7d5caf3ec Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 18 Aug 2026 02:44:10 +0200 Subject: [PATCH] Test portable Eve packages on Windows and Linux --- .github/workflows/portable-contracts.yml | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/portable-contracts.yml diff --git a/.github/workflows/portable-contracts.yml b/.github/workflows/portable-contracts.yml new file mode 100644 index 0000000..db8849b --- /dev/null +++ b/.github/workflows/portable-contracts.yml @@ -0,0 +1,43 @@ +name: Portable Eve contracts and browser lowering + +on: + pull_request: + workflow_dispatch: + +jobs: + contracts-and-browser: + name: ${{ matrix.os }} ${{ matrix.package }} + runs-on: ${{ matrix.os }} + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest] + package: [eve-contracts, eve-browser-lowering] + + steps: + - name: Check out Eve + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: npm + cache-dependency-path: packages/${{ matrix.package }}/package-lock.json + + - name: Install package dependencies + working-directory: packages/${{ matrix.package }} + run: npm ci + + - name: Build and test source + working-directory: packages/${{ matrix.package }} + run: npm test + + - name: Reject stale generated output + shell: pwsh + run: | + if (git status --short) { + git status --short + throw "The package build changed checked-in generated output." + }