Skip to content

feat: alpha8 module support #1122

feat: alpha8 module support

feat: alpha8 module support #1122

Workflow file for this run

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@1360a344ccb0ab6e9475edef90ad2f46bf8003b1" # 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@d1891786152ae96fee67f86c3a1eae596291bbed # v1
with:
components: "native-image,js"
version: '22.3.1'
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@35b0e87d162680511bf346c299f71c9c5c379033" # 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@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 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/ts //elide/runtime/js
- name: "🛠️ Test"
id: bazeltest
env:
CI: true
run: bazel test --config=adc --config=ci //tests/...