aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/custom.md27
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md10
-rw-r--r--.github/workflows/ci.yml56
3 files changed, 93 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md
new file mode 100644
index 0000000..fd66e04
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/custom.md
@@ -0,0 +1,27 @@
+---
+name: Custom issue template
+about: General issues, both bugs and features.
+title: ''
+labels: ''
+assignees: mssola
+---
+
+### Description
+
+Check out the [contribution guidelines](../CONTRIBUTING.md) file for some considerations before submitting a new issue.
+
+### Steps to reproduce
+
+1. First I did this...
+2. Then that...
+3. And this happened!
+
+- **Expected behavior**: I expected this to happen!
+- **Actual behavior**: But this happened...
+
+Providing logs would also be useful.
+
+### Deployment information
+
+- **Deployment method**: how have you deployed this application? If possible, could you paste your configuration? (don't forget to strip passwords or other sensitive data!)
+- Commit SHA.
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..7e5026e
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,10 @@
+Provide a general description of the changes in your pull request. If this pull request fixes a known issue, please tag it as well (e.g.: `Fixes #1`).
+
+Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes):
+
+- [ ] The commits are consistent with the [contribution guidelines](../CONTRIBUTING.md).
+- [ ] `bundle exec rails test`, `bundle exec rails test:system` and `bundle exec rubocop` are passing.
+- [ ] You've updated the [changelog](../CHANGELOG.md) (if adding/changing user-visible functionality).
+- [ ] You've updated the [readme](../README.md) (if adding/changing user-visible functionality).
+
+Thanks for contributing to this project!
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..54baa0e
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,56 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+jobs:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+
+ - name: Run linting
+ run: |
+ bundle exec rubocop --parallel
+
+ - name: Run security checks
+ run: |
+ bundle exec bundler-audit --update
+ bundle exec brakeman -q -w2
+
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ bundler-cache: true
+
+ - name: Setup database
+ env:
+ RAILS_ENV: "test"
+ run: |
+ bin/rails db:setup
+
+ - name: Check autoloading (zeitwerk)
+ env:
+ RAILS_ENV: "test"
+ run: |
+ bin/rails zeitwerk:check
+
+ - name: Run tests
+ env:
+ RAILS_ENV: "test"
+ run: |
+ bin/rails test
+ bin/rails test:system