From 2026d91a052e44b809848e940ec12c883e517a39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Wed, 23 Mar 2022 12:03:27 +0100 Subject: [PATCH] Split GH actions jobs to improve feedback on results --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ .github/workflows/{ci.yml => test.yml} | 16 ---------------- 2 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/lint.yml rename .github/workflows/{ci.yml => test.yml} (60%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..45d6bd2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + - name: Rubocop + run: bundle exec rubocop diff --git a/.github/workflows/ci.yml b/.github/workflows/test.yml similarity index 60% rename from .github/workflows/ci.yml rename to .github/workflows/test.yml index caeb263..7e92a1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test.yml @@ -7,22 +7,6 @@ on: branches: [ main ] jobs: - lint: - runs-on: ubuntu-latest - strategy: - fail-fast: false - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.1 - bundler-cache: true - - name: Rubocop - run: bundle exec rubocop - test: runs-on: ubuntu-latest strategy: