Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test

on: pull_request

jobs:
test:
name: Build and test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint and format
uses: gcr.io/cloud-builders/bazel@sha256:aa6c5ffd0d6d37960715d9c3392ba885e6484322c81c3604a90ccfb15c07c110
with:
entrypoint: bash
args: ./scripts/lint

- name: Run unit tests
# 7.3.2
uses: gcr.io/cloud-builders/bazel@sha256:aa6c5ffd0d6d37960715d9c3392ba885e6484322c81c3604a90ccfb15c07c110
with:
entrypoint: bash
args: ./scripts/run_tests

- name: Run integration tests
# 7.3.2
uses: gcr.io/cloud-builders/bazel@sha256:aa6c5ffd0d6d37960715d9c3392ba885e6484322c81c3604a90ccfb15c07c11
with:
entrypoint: bash
args: ./scripts/run_integration_tests
3 changes: 0 additions & 3 deletions scripts/run_tests_on_cloudbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ bazel run //tools/registry-tools:switch_registry -- $(pwd)/yarn.lock https://us-
# Install from trusted registry, prohibit lockfile changes.
bazel run @nodejs//:yarn install -- --frozen-lockfile

# Run lint and format checks
./scripts/lint

# Run unit tests
./scripts/run_tests

Expand Down
Loading