-
Notifications
You must be signed in to change notification settings - Fork 9
29 lines (26 loc) · 986 Bytes
/
workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Continuous integration
on: [pull_request]
env:
# Bump this number to invalidate the GH actions cache
cache-version: 0
jobs:
integration-tests:
name: Run integration tests
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest # x86_64
- macos-latest # aarch64
- macos-13 # x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Bazel_6 integration tests
run: |
nix develop -i --command bazel test //examples:integration_tests --config=nix --test_tag_filters=bazel6 --test_output=all
- name: Bazel_7 integration tests
run: |
nix develop -i --command bash -c "set -eo pipefail; bazel query 'attr(\"tags\", \"[\\[ ]bazel7[,\\]]\", deps(\"//examples:integration_tests\"))' | xargs -L1 bazel run --config=nix"