From ee956039adaa63f2b9e3912710253477803fac6b Mon Sep 17 00:00:00 2001 From: Grzegorz Jakubiak Date: Sun, 4 Jul 2021 18:52:32 +0200 Subject: [PATCH] Use Github actions to run CI --- .github/workflows/codecheck.yml | 12 ++++++++++++ .github/workflows/tests.yml | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/codecheck.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/codecheck.yml b/.github/workflows/codecheck.yml new file mode 100644 index 0000000..2922c60 --- /dev/null +++ b/.github/workflows/codecheck.yml @@ -0,0 +1,12 @@ +name: Codecheck +on: push +jobs: + codecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true + - run: bundle exec rubocop \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..2307602 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,17 @@ +name: Tests +on: push +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + ruby: [2.5, 2.6, 2.7] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - run: bundle exec rake