This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
ci: convert bazel jobs to a PR Github Action workflow #1
Workflow file for this run
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: 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: Execute Linting | |
run: yarn bazel test --test_tag_filters=+audit //... | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Initialize environment | |
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | |
- 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: 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: 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: 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: logs | |
path: bazel-testlogs/ | |
retention-days: 14 |