diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce2a506..7cf43df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,26 @@ defaults: shell: bash jobs: + verify-index-js-up-to-date: + name: Verify that `dist/index.js` is up to date + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: diff-ing dist/index.js + env: + NODE_OPTIONS: "--openssl-legacy-provider" + run: | + set -euxo pipefail + npm ci + npm run build + # exclude dist/index.js.map (different on Windows) + git diff --stat --exit-code HEAD -- ':!dist/index.js.map' + verify-dmd: + needs: verify-index-js-up-to-date strategy: max-parallel: 5 fail-fast: false @@ -43,6 +62,7 @@ jobs: dc: ${{ matrix.dc }} verify-ldc: + needs: verify-index-js-up-to-date strategy: max-parallel: 5 fail-fast: false @@ -70,6 +90,7 @@ jobs: dc: ${{ matrix.dc }} verify-gdmd: + needs: verify-index-js-up-to-date strategy: max-parallel: 5 fail-fast: false @@ -85,6 +106,7 @@ jobs: dc: ${{ matrix.dc }} verify-default: + needs: verify-index-js-up-to-date name: Verify default compiler strategy: max-parallel: 5 @@ -98,6 +120,7 @@ jobs: dub: name: Verify standalone DUB install + needs: verify-index-js-up-to-date strategy: fail-fast: false matrix: @@ -145,21 +168,3 @@ jobs: - name : Compile with dub run: | cd .github && dub run --single hello.d --compiler=${DC} - - verify-index-js-up-to-date: - name: Verify that `dist/index.js` is up to date - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - - name: diff-ing dist/index.js - env: - NODE_OPTIONS: "--openssl-legacy-provider" - run: | - set -euxo pipefail - npm ci - npm run build - # exclude dist/index.js.map (different on Windows) - git diff --stat --exit-code HEAD -- ':!dist/index.js.map'