forked from percy/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.14 KB
/
Copy pathexecutable-check.yml
File metadata and controls
36 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Verify Executable
# Per-PR gate: build the packaged executables exactly as the release pipeline
# does and smoke-test them — but without signing, notarizing or uploading. This
# catches binary-only breakages (e.g. a bad require produced by the CJS
# transpile that never shows up in the Node/source test suite) on the PR that
# introduces them, so they can't reach a release.
#
# No secrets are used or needed: scripts/executable.sh skips the macOS
# signing/notarization block when APPLE_DEV_CERT is unset, which also makes this
# safe to run on pull requests from forks.
on:
pull_request:
branches: [master]
permissions:
contents: read
concurrency:
group: verify-executable-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Build & verify executable
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 14
architecture: x64
- name: Build executables (no signing, no upload)
run: ./scripts/executable.sh
- name: Verify executable
run: ./scripts/verify-executable.sh ./percy