-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (36 loc) · 1.47 KB
/
workflow.yml
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
28
29
30
31
32
33
34
35
36
37
38
name: CEL-Java CI
run-name: Workflow started by ${{ github.actor }}.
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
# Cancel previous workflows on the PR when there are multiple fast commits.
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
Bazel-Tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 Job is running on a ${{ runner.os }} server!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- name: Mount Bazel Cache
uses: actions/cache@v3
with:
path: "/home/runner/.cache/bazel"
key: bazelisk
- name: Bazel Output Version
run: bazelisk --version
- name: Bazel Test
# Exclude codelab exercises as they are intentionally made to fail
# Exclude conformance tests for time being until TextFormat.Parser fix is in upstream
run: bazelisk test ... --deleted_packages=//codelab/src/test/codelab,//conformance/src/test/java/dev/cel/conformance --test_output=errors
- run: echo "🍏 This job's status is ${{ job.status }}."