Add suggested .bazelrc
flags
#161
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: 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: | |
name: Build and Test | |
runs-on: macos-14 | |
environment: CI | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Up CI | |
run: .github/workflows/xcode_select.sh | |
env: | |
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }} | |
- name: Lint | |
run: bazelisk run :lint && git diff --exit-code | |
- name: Build and Test | |
run: | | |
# Build the app | |
bazelisk build -- //app | |
# Run the tests | |
bazelisk test --local_test_jobs=1 -- //... | |
- name: Generate Xcode Project | |
run: | | |
# Generate Xcode project | |
bazelisk run -- //:xcodeproj | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: bazel-testlogs | |
path: bazel-testlogs |