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