Skip to content

Set rules_swift max_compatibility_level to 2 #78

Set rules_swift max_compatibility_level to 2

Set rules_swift max_compatibility_level to 2 #78

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
# One active job per PR, cancel older ones on push
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
strategy:
matrix:
bzlmod: ["--enable_bzlmod", "--noenable_bzlmod"]
name: Build and Test
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: .github/workflows/xcode_select.sh
- name: Lint
run: bazelisk run :lint && git diff --exit-code
- name: Build and Test
run: |
# Run the tests
bazelisk test --local_test_jobs=1 ${{ matrix.bzlmod }} -- //...
- name: Generate Xcode Project
run: |
# Generate Xcode project
bazelisk run -- //:xcodeproj
- uses: actions/upload-artifact@v2
if: failure()
with:
name: bazel-testlogs
path: bazel-testlogs