From 10678d08375d7a84b3482e789ad9a39f62cf6351 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Sat, 24 Feb 2024 08:58:39 +0300 Subject: [PATCH] #10 gha --- .github/workflows/codecov.yml | 21 +++++++++++++++++++++ .github/workflows/pdd.yml | 15 +++++++++++++++ .github/workflows/rake.yml | 24 ++++++++++++++++++++++++ .github/workflows/xcop.yml | 11 +++++++++++ README.md | 5 +---- 5 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/codecov.yml create mode 100644 .github/workflows/pdd.yml create mode 100644 .github/workflows/rake.yml create mode 100644 .github/workflows/xcop.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..3388d12 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,21 @@ +--- +name: codecov +on: + push: + branches: + - master +jobs: + codecov: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + - run: bundle update + - run: bundle exec rake + - uses: codecov/codecov-action@v4.0.0-beta.3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: coverage/.resultset.json + fail_ci_if_error: true diff --git a/.github/workflows/pdd.yml b/.github/workflows/pdd.yml new file mode 100644 index 0000000..78277a2 --- /dev/null +++ b/.github/workflows/pdd.yml @@ -0,0 +1,15 @@ +--- +name: pdd +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + pdd: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: volodya-lombrozo/pdd-action@master diff --git a/.github/workflows/rake.yml b/.github/workflows/rake.yml new file mode 100644 index 0000000..b6fe81a --- /dev/null +++ b/.github/workflows/rake.yml @@ -0,0 +1,24 @@ +--- +name: rake +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + rake: + name: test + strategy: + matrix: + os: [ubuntu-22.04, macos-12] + ruby: [2.7, 3.3] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: bundle update + - run: bundle exec rake diff --git a/.github/workflows/xcop.yml b/.github/workflows/xcop.yml new file mode 100644 index 0000000..ec88bd0 --- /dev/null +++ b/.github/workflows/xcop.yml @@ -0,0 +1,11 @@ +--- +name: xcop +on: + push: + pull_request: +jobs: + xcop: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 + - uses: g4s8/xcop-action@master diff --git a/README.md b/README.md index e897d66..7fa5bf4 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@ - + -[![Managed by Zerocracy](http://www.zerocracy.com/badge.svg)](http://www.zerocracy.com) [![DevOps By Rultor.com](http://www.rultor.com/b/yegor256/xembly-gem)](http://www.rultor.com/p/yegor256/xembly-gem) [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/) -[![Build Status](https://travis-ci.org/yegor256/xembly-gem.svg)](https://travis-ci.org/yegor256/xembly-gem) -[![Build status](https://ci.appveyor.com/api/projects/status/8e5dsjjemymfg510?svg=true)](https://ci.appveyor.com/project/yegor256/xembly-gem) [![Gem Version](https://badge.fury.io/rb/xembly.svg)](http://badge.fury.io/rb/xembly) [![Maintainability](https://api.codeclimate.com/v1/badges/f26349e81b04628d8bf7/maintainability)](https://codeclimate.com/github/yegor256/xembly-gem/maintainability) [![Test Coverage](https://img.shields.io/codecov/c/github/yegor256/xembly-gem.svg)](https://codecov.io/github/yegor256/xembly-gem?branch=master)