From c12541a2f5c06af32074d6be7ef73c3baa22fef7 Mon Sep 17 00:00:00 2001 From: Dick Davis Date: Wed, 20 Sep 2023 23:47:38 -0500 Subject: [PATCH] Add Github codeowners, PR template, and actions --- .github/CODEOWNERS | 1 + .github/pull_request_template.md | 11 +++++++ .github/workflows/ruby.yml | 52 ++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/ruby.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..12368bc --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @dickdavis diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..2e9d351 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +## Description + +This PR... + +## Testing + +Follow these steps to test this PR: + +* ... +* ... +* ... diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..0697101 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,52 @@ +name: Ruby + +on: + push: + branches: [ main ] + pull_request: + +jobs: + rubocop: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.1.4'] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run rubocop + run: bundle exec rubocop + + reek: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.1.4'] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run reek + run: bundle exec reek + + rspec: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['3.1.4', '3.2.2'] + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Specs + run: bundle exec rspec