This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: convert bazel jobs to a PR Github Action workflow
The Bazel variants of the existing CircleCI configuration have now been moved to a PR workflow for Github Actions. This is a first step to fully converting to the use of Github Actions within the repository. The non-Bazel jobs currently still executing with CircleCI both for PRs and main CI.
- Loading branch information
Showing
3 changed files
with
73 additions
and
69 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Pull Request | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: {} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
# TODO: Remove when pnpm is exclusively used. | ||
ASPECT_RULES_JS_FROZEN_PNPM_LOCK: '1' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install | ||
- name: Execute Linting | ||
run: yarn bazel test --test_tag_filters=lint //... | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install | ||
- name: Execute Build | ||
run: yarn bazel build //... | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install | ||
- name: Execute Tests | ||
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //... | ||
- name: Store Test Logs | ||
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
name: test-logs | ||
path: bazel-testlogs/ | ||
retention-days: 14 | ||
|
||
lighthouse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install | ||
- name: Execute Lighthouse Audit | ||
run: yarn bazel test --test_tag_filters=audit //... | ||
- name: Store Audit Logs | ||
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
name: lighthouse-logs | ||
path: bazel-testlogs/ | ||
retention-days: 14 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.11.0 | ||
20.16.0 |