diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5de4792 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/test/nodes/test_console_input_node.rb b/test/nodes/test_console_input_node.rb index bd4c01b..53ff634 100644 --- a/test/nodes/test_console_input_node.rb +++ b/test/nodes/test_console_input_node.rb @@ -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)