Skip to content

Commit

Permalink
Add GitHub Actions for test
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-GAMELINKS committed Aug 11, 2024
1 parent e57c175 commit 8a4e19a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Ubuntu

on:
push:
branches:
- master
pull_request:
branches:
- master


jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt install git ruby autoconf gcc make zlib1g-dev libffi-dev libreadline-dev libgdbm-dev libssl-dev libyaml-dev -y

- name: Install rbenv
run: |
sudo apt install rbenv
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
- name: Install Ruby head
run: |
RUBY_CONFIGURE_OPTS="cppflags=-DUNIVERSAL_PARSER" rbenv install ruby-dev
rbenv global ruby-dev
- name: Install bundler
run: gem install bundler

- name: bunlde install
run: bundle install

- name: Build Ruby Parser
run: bundle exec rake ruby_parser:build

- name: Build Mjollnir
run: bundle exec rake compile

- name: Run tests
run: bundle exec rake test

0 comments on commit 8a4e19a

Please sign in to comment.