diff --git a/.github/workflows/std.yml b/.github/workflows/std.yml index b7560c5e995..f86cefcaad8 100644 --- a/.github/workflows/std.yml +++ b/.github/workflows/std.yml @@ -69,7 +69,25 @@ concurrency: group: std-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: + check-yarn-project-nix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: nixbuild/nix-quick-install-action@v25 + - uses: nixbuild/nixbuild-action@v17 + with: + nixbuild_ssh_key: ${{ secrets.SSH_PRIVATE_KEY }} + generate_summary_for: job + # Further steps assume AWS_PROFILE=lw, while the official action has no way to specify that profile: + - run: | + if ! grep -F '"@esbuild/linux-x64@npm:' yarn-project.nix ; then + echo >&2 'Please, make sure that the "yarn-project.nix" contains "@esbuild/linux-x64@npm" (see your diff).' + exit 1 + fi + shell: bash + discover: + needs: check-yarn-project-nix # Don’t run on PRs from forks (no access to secrets): if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository outputs: