From ba82f825bfb35c2454406ccb426b130668dc28fd Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Wed, 25 Mar 2020 20:02:59 +0100 Subject: [PATCH] Add github actions test --- .github/workflows/rubocop.yml | 8 ++++---- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml index 4ee8bde..4e59725 100644 --- a/.github/workflows/rubocop.yml +++ b/.github/workflows/rubocop.yml @@ -1,10 +1,10 @@ name: Run RuboCop - -on: [push] +on: + push: + pull_request: jobs: - build: - + test: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..be1357e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Run Tests +on: + push: + pull_request: + schedule: + - cron: '0 5 * * *' + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + redmine: + - v4.0 + - v4.1 + - trunk + ruby: + - v2.4 + - v2.5 + - v2.6 + + steps: + - name: Redmine plugin test + uses: two-pack/redmine-plugin-test-action@v2 + with: + plugin_name: redmine_messenger + redmine_version: ${{ matrix.redmine }} + ruby_version: ${{ matrix.ruby }}