feat: add node child_process
module
#1246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- gh-readonly-queue/main/* | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
## | |
## Job: Pre-flight Checks | |
## | |
preflight-checks: | |
name: "Pre-flight Checks" | |
runs-on: "ubuntu-latest" | |
permissions: | |
contents: "read" | |
id-token: "write" | |
checks: "write" | |
pull-requests: "write" | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
uses: "actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9" # v3 | |
- name: "Check: Dependency Review" | |
uses: "actions/dependency-review-action@01bc87099ba56df1e897b6874784491ea6309bc4" # v3 | |
continue-on-error: true | |
with: | |
config-file: "./.github/dependency-review-config.yml" | |
license-check: true | |
vulnerability-check: true | |
fail-on-severity: "low" | |
base-ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'v3' }} | |
## | |
## Job: Runtime Build | |
## | |
bazel: | |
name: "Build" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
actions: "read" | |
id-token: "write" | |
checks: "write" | |
pull-requests: "write" | |
security-events: "write" | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- name: "Setup: Checkout" | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
- name: "Setup: GraalVM (Java ${{ vars.JVM_VERSION }})" | |
uses: graalvm/setup-graalvm@2f25c0caae5b220866f732832d5e3e29ff493338 # v1 | |
with: | |
java-version: ${{ vars.JVM_VERSION || '19' }} | |
check-for-updates: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- id: "auth" | |
name: "Setup: Authorize Service Account" | |
uses: "google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa" # v1 | |
with: | |
credentials_json: "${{ secrets.BUILDBOT_SERVICE_ACCOUNT }}" | |
create_credentials_file: true | |
export_environment_variables: true | |
cleanup_credentials: true | |
- name: "Setup: Node" | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION }} | |
- name: "Setup: PNPM" | |
run: npm install -g pnpm && pnpm install | |
- name: "Setup: Binaryen" | |
run: sudo bash -c 'curl -sSL https://github.com/WebAssembly/binaryen/releases/download/version_111/binaryen-version_111-x86_64-linux.tar.gz | tar -C /usr/local -xz --strip-components=1' | |
- name: "Setup: Authorization" | |
run: echo "build --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }}" > ~/.bazelrc | |
- uses: bazelbuild/setup-bazelisk@95c9bf48d0c570bb3e28e57108f3450cd67c1a44 # v2 | |
- name: "🛠️ Build" | |
id: bazelbuild | |
run: bazel build --config=adc --config=ci //elide/runtime/... | |
- name: "🛠️ Test" | |
id: bazeltest | |
env: | |
CI: true | |
run: bazel test --config=adc --config=ci //tests/... |