forked from sorbet/sorbet
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (33 loc) · 1.1 KB
/
ci.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
name: CI
on:
push:
branches: [prism, prism-squashed]
pull_request:
branches: [prism, prism-squashed]
jobs:
tests:
runs-on: ubuntu-latest
name: Prism Parser Regression Tests
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
- name: Set up Bazel
uses: bazel-contrib/[email protected]
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
- name: Verify parse trees
run: ./tools/scripts/verify_prism_regression_tests.sh
- name: Run tests
run: ./bazel test //test:prism_regression --config=dbg --test_output=errors
- name: Run location tests
run: ./bazel test //test:prism_location_tests --config=dbg --test_output=errors
- name: Run corpus tests
run: ./bazel test //test:test_corpus_prism --config=dbg --test_output=errors