From 3215ab7d7cca3fc3807ef96f7757c5d9fac85e4b Mon Sep 17 00:00:00 2001 From: Jose Lloret Date: Tue, 28 Nov 2023 00:09:32 +0100 Subject: [PATCH] testing workflow --- .github/workflows/gem-push.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gem-push.yml b/.github/workflows/gem-push.yml index 442eba3..18b7573 100644 --- a/.github/workflows/gem-push.yml +++ b/.github/workflows/gem-push.yml @@ -8,14 +8,35 @@ on: jobs: build: - name: Build + Publish + name: Build runs-on: ubuntu-latest permissions: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Set up Ruby 3.2.2 + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.2.2 + + - name: Install dependencies + run: bundle install + + - name: Run tests + run: bundle exec rspec + + publish: + needs: build + name: Publish + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 - name: Set up Ruby 3.2.2 uses: ruby/setup-ruby@v1 with: