From deca0a012b817855491549bd128e974b5d292d9f Mon Sep 17 00:00:00 2001 From: Leon Berenschot Date: Tue, 10 Sep 2024 12:27:39 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Github=20=F0=9F=8E=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..71a1889 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ + +name: Test + +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + - master + - develop + +jobs: + spec: + runs-on: ubuntu-latest + name: Ruby ${{ matrix.ruby }} + strategy: + fail-fast: false + matrix: + ruby: + - "2.1" + - "2.2" + - "2.3" + - "2.4" + - "2.5" + - "2.6" + - "2.7" + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake