From 098dffd5dd6b00b5d8ba211ade333187179ad2cb Mon Sep 17 00:00:00 2001 From: Jon Pascoe Date: Thu, 21 Oct 2021 23:32:04 +0100 Subject: [PATCH 1/2] Require ruby files pass linting before running tests --- .github/workflows/tests.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d8766cb3..7713fda6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,7 +9,17 @@ on: - master jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.6' + bundler-cache: true + - run: bundle exec standardrb test: + needs: lint strategy: matrix: rails: ['5.2', '6.0.4', '6.1'] From 2d75e4cac60aab9ffd7971752b6b1f22455f186e Mon Sep 17 00:00:00 2001 From: Jon Pascoe Date: Thu, 21 Oct 2021 23:33:57 +0100 Subject: [PATCH 2/2] Update tests badge link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de0fbc8b..601b4fbe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ice_cube - Easy schedule expansion -[![Tests](https://github.com/seejohnrun/ice_cube/workflows/Tests/badge.svg)](https://github.com/seejohnrun/ice_cube/actions?query=workflow%3ATests) +[![Tests](https://github.com/seejohnrun/ice_cube/actions/workflows/tests.yaml/badge.svg)](https://github.com/seejohnrun/ice_cube/actions/workflows/tests.yaml) [![Gem Version](https://badge.fury.io/rb/ice_cube.svg)](http://badge.fury.io/rb/ice_cube) [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)