From 556e6b5c1159239a38fb676386fc41cea17c88b8 Mon Sep 17 00:00:00 2001 From: davvd Date: Mon, 26 Jun 2023 08:12:52 +0300 Subject: [PATCH] #424 github actions --- .github/.github/workflows/codecov.yml | 20 ++++++++++++++++++++ .github/.github/workflows/pdd.yml | 11 +++++++++++ .github/.github/workflows/rake.yml | 23 +++++++++++++++++++++++ .github/.github/workflows/xcop.yml | 11 +++++++++++ README.md | 1 - 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 .github/.github/workflows/codecov.yml create mode 100644 .github/.github/workflows/pdd.yml create mode 100644 .github/.github/workflows/rake.yml create mode 100644 .github/.github/workflows/xcop.yml diff --git a/.github/.github/workflows/codecov.yml b/.github/.github/workflows/codecov.yml new file mode 100644 index 0000000..5a93e60 --- /dev/null +++ b/.github/.github/workflows/codecov.yml @@ -0,0 +1,20 @@ +--- +name: codecov +on: + push: + branches: + - master +jobs: + codecov: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + - run: bundle update + - run: bundle exec rake + - uses: codecov/codecov-action@v3 + with: + file: coverage/.resultset.json + fail_ci_if_error: true diff --git a/.github/.github/workflows/pdd.yml b/.github/.github/workflows/pdd.yml new file mode 100644 index 0000000..0dbf079 --- /dev/null +++ b/.github/.github/workflows/pdd.yml @@ -0,0 +1,11 @@ +--- +name: pdd +on: + push: + pull_request: +jobs: + pdd: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: g4s8/pdd-action@master diff --git a/.github/.github/workflows/rake.yml b/.github/.github/workflows/rake.yml new file mode 100644 index 0000000..be8977a --- /dev/null +++ b/.github/.github/workflows/rake.yml @@ -0,0 +1,23 @@ +--- +name: rake +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + test: + strategy: + matrix: + os: [ubuntu-20.04, macos-12] + ruby: ['3.0'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - run: bundle update + - run: bundle exec rake diff --git a/.github/.github/workflows/xcop.yml b/.github/.github/workflows/xcop.yml new file mode 100644 index 0000000..ee7da74 --- /dev/null +++ b/.github/.github/workflows/xcop.yml @@ -0,0 +1,11 @@ +--- +name: xcop +on: + push: + pull_request: +jobs: + xcop: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: g4s8/xcop-action@master diff --git a/README.md b/README.md index 4ec2557..9e00c6d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![DevOps By Rultor.com](http://www.rultor.com/b/zold-io/wts.zold.io)](http://www.rultor.com/p/zold-io/wts.zold.io) [![We recommend RubyMine](https://www.elegantobjects.org/rubymine.svg)](https://www.jetbrains.com/ruby/) -[![Build Status](https://travis-ci.org/zold-io/wts.zold.io.svg)](https://travis-ci.org/zold-io/wts.zold.io) [![PDD status](http://www.0pdd.com/svg?name=zold-io/wts.zold.io)](http://www.0pdd.com/p?name=zold-io/wts.zold.io) [![Test Coverage](https://img.shields.io/codecov/c/github/zold-io/wts.zold.io.svg)](https://codecov.io/github/zold-io/wts.zold.io?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/25b798dc13147f13bb59/maintainability)](https://codeclimate.com/github/zold-io/wts.zold.io/maintainability)