Skip to content

Commit

Permalink
Add CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed May 24, 2024
1 parent e1110c3 commit 7052d78
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test examples

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *'

workflow_dispatch:

jobs:

test_externally:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
bazel: [7.x, last_green]
os: [ubuntu-latest, macos-13, macos-latest]
env:
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v4

- name: Test examples
env:
USE_BAZEL_VERSION: ${{ matrix.bazel }}
working-directory: ./examples
run: bazelisk test //...

- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: testlogs-${{ matrix.bazel}}-${{ matrix.os }}
# https://github.com/actions/upload-artifact/issues/92#issuecomment-711107236
path: |
${{ github.workspace }}/examples/bazel-testlogs*/**/test.log

0 comments on commit 7052d78

Please sign in to comment.