Skip to content

Bump aspect-cli to v2026.22.15 #43

Bump aspect-cli to v2026.22.15

Bump aspect-cli to v2026.22.15 #43

name: CI - Vanilla Bazel
on:
push:
branches: [main, 2.x, 3.x]
pull_request:
branches: [main, 2.x, 3.x]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
# Only run on main branch (not PRs) to minimize minutes (billed at 10X and 2X respectively)
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes
if: github.ref_name == 'main' || contains(github.head_ref, 'macos') || contains(github.head_ref, 'windows')
strategy:
fail-fast: false
matrix:
folder:
- .
- examples
- 'e2e/smoke'
- 'e2e/smoke_rjs3'
os:
# NB: linux testing is on Aspect Workflows
- macos-latest
# Broken by rules_multitool, among others
# - windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
with:
bazelisk-cache: true
external-cache: true
module-root: ${{ matrix.folder }}
- run: bazel test //...
bats-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v3
with:
# pnpm 7 does not work with latest node 20
node-version: 19
- uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
with:
version: '7.14.2'
- name: Setup bats
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1
with:
bats-version: '1.8.2'
- name: Setup bats helpers
uses: brokenpip3/setup-bats-libs@adb596631d41c8e1da2466833a66ed2c321a4157 # 0.0.3
with:
support-path: /usr/lib/bats/bats-support
support-version: '0.3.0'
assert-path: /usr/lib/bats/bats-assert
assert-version: '2.1.0'
- name: bats -r .
working-directory: e2e/test
run: |
echo "import $GITHUB_WORKSPACE/.github/workflows/ci.bazelrc" > .bazelrc
bats -r .
# For branch protection settings, this job provides a "stable" name that can be used to gate PR merges
# on "all matrix jobs were successful".
conclusion:
needs: [test, bats-tests]
runs-on: ubuntu-latest
if: always()
steps:
- run: |
if [[ "${{ needs.bats-tests.result }}" == "success" && ("${{ needs.test.result }}" == "success" || "${{ needs.test.result }}" == "skipped") ]]; then
exit 0
else
exit 1
fi