From 2acd5ed5b50b6f033fc57320161470e65886d9c4 Mon Sep 17 00:00:00 2001 From: Gustavo Ribeiro Date: Sat, 30 Dec 2023 10:21:44 -0300 Subject: [PATCH] Setup GitHub CI --- .github/workflows/main.yml | 42 ++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57483a7..3d800a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,27 +1,21 @@ -# name: Ruby +name: Ruby -# on: -# push: -# branches: -# - main +on: + pull_request: + branches: [ "main" ] -# pull_request: +permissions: + contents: read -# jobs: -# build: -# runs-on: ubuntu-latest -# name: Ruby ${{ matrix.ruby }} -# strategy: -# matrix: -# ruby: -# - '3.0.6' - -# steps: -# - uses: actions/checkout@v2 -# - name: Set up Ruby -# uses: ruby/setup-ruby@v1 -# with: -# ruby-version: ${{ matrix.ruby }} -# bundler-cache: true -# - name: Run the default task -# run: bundle exec rake +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0.6 + bundler-cache: true + - name: Run tests + run: bundle exec rake test