forked from sorbet/sorbet
-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (30 loc) · 1.05 KB
/
ci.yml
File metadata and controls
32 lines (30 loc) · 1.05 KB
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
name: CI
on:
[push, pull_request]
# Runs Prism specific tests in a Github Action workflow only on Shopify's fork
# This is useful during Prism migration as it contains extra tests.
# It'll be removed once the migration is complete.
jobs:
tests:
runs-on: ubuntu-latest
name: Prism Parser Regression Tests
if: github.repository == 'Shopify/sorbet'
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/setup-bazel@0.9.0
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: Run tests
run: ./bazel test //test:prism_regression --config=dbg --test_output=errors
- name: Run corpus tests
run: ./bazel test //test:test_corpus_prism --config=dbg --test_output=errors