Skip to content

Commit

Permalink
Added Github action for CI (fixes #6) (#8)
Browse files Browse the repository at this point in the history
* Added ci.yml

* Updated CI to fix versioning issue

* Added rubocop and fixed offense
  • Loading branch information
SamvitaKarkal committed Aug 12, 2024
1 parent 869ca8e commit 0910471
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["3.0", "3.2.2"]

steps:
- uses: actions/checkout@v3

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake test

- name: Run RuboCop
run: bundle exec rubocop
2 changes: 1 addition & 1 deletion test/nodes/test_console_input_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_console_input_evaluate
def test_console_input_with_value
@context = { "a" => 5 }

input = 'console.input(a);'
input = "console.input(a);"

node = Confuscript.parser.parse(input)

Expand Down

0 comments on commit 0910471

Please sign in to comment.