Skip to content

Commit

Permalink
Add automated testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
egiurleo committed Jun 14, 2024
1 parent 8219c0e commit 301744c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [proj-parsing-w-prism-in-sorbet]
pull_request:
branches: [proj-parsing-w-prism-in-sorbet]

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: Run tests
run: ./bazel test //test:prism --config=dbg --define RUBY_PATH='/opt/hostedtoolcache/Ruby/3.3.0/x64' --test_output=all
2 changes: 1 addition & 1 deletion third_party/prism.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ genrule(
#
# Pass the RUBY_PATH variable to the build using the --define flag, e.g.
# ./bazel build //main:sorbet --config=dbg --define RUBY_PATH=/path/to/ruby
export PATH="$(RUBY_PATH):$$PATH"
export PATH="$(RUBY_PATH)/bin:$$PATH"

cd external/prism

Expand Down

0 comments on commit 301744c

Please sign in to comment.