From 3e4dd3a6d5a043fc44e4def9a557d243370f6924 Mon Sep 17 00:00:00 2001 From: Samir Tapiero Date: Thu, 15 Feb 2024 11:36:56 -0500 Subject: [PATCH] Move use only one workflow ci, add CI badge in README --- .github/workflows/{test.yml => ci.yml} | 17 ++++++++++++++++- .github/workflows/linter.yml | 25 ------------------------- README.md | 1 + 3 files changed, 17 insertions(+), 26 deletions(-) rename .github/workflows/{test.yml => ci.yml} (75%) delete mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml similarity index 75% rename from .github/workflows/test.yml rename to .github/workflows/ci.yml index ad14310..1f62740 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Test +name: CI on: pull_request: @@ -8,6 +8,21 @@ on: branches: ["master", "main"] jobs: + linter: + runs-on: ubuntu-latest + name: linter/ruby + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.6 + bundler-cache: true + + - name: Run linter + run: bundle exec rake code_analysis test: runs-on: ubuntu-latest container: ${{ matrix.ruby }} diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index db0211e..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Linter - -on: - pull_request: - branches: ["master", "main"] - - push: - branches: ["master", "main"] - -jobs: - linter: - runs-on: ubuntu-latest - name: linter/ruby - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 2.6 - bundler-cache: true - - - name: Run linter - run: bundle exec rake code_analysis diff --git a/README.md b/README.md index a749610..3c8f9bb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # AppleAuth [![Gem Version](https://badge.fury.io/rb/apple_auth.svg)](https://badge.fury.io/rb/apple_auth) +![CI](https://github.com/rootstrap/apple_auth/actions/workflows/ci.yml/badge.svg?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/78453501221a76e3806e/maintainability)](https://codeclimate.com/github/rootstrap/apple_sign_in/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/78453501221a76e3806e/test_coverage)](https://codeclimate.com/github/rootstrap/apple_sign_in/test_coverage)