-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
General update of the application dependencies
* Remove spring and guard * Remove form generator * Switch to GHA from CircleCI * Upgrade to Ruby 3.2 * Configure dependabot
- Loading branch information
Showing
42 changed files
with
2,809 additions
and
2,339 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
node_modules | ||
log | ||
tmp | ||
.dockerignore | ||
docker-compose.yml | ||
Dockerfile | ||
public/packs | ||
/log/* | ||
/tmp/* | ||
/node_modules/* | ||
/public/packs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
ignore: | ||
- dependency-name: "rails" | ||
update-types: ["version-update:semver-minor"] | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-major"] | ||
directory: / | ||
schedule: | ||
interval: daily | ||
versioning-strategy: increase-if-necessary | ||
open-pull-requests-limit: 10 | ||
groups: | ||
rails: | ||
applies-to: version-updates | ||
patterns: | ||
- "action*" | ||
- "active*" | ||
- "rails" | ||
- "railties" | ||
update-types: | ||
- "patch" | ||
|
||
- package-ecosystem: npm | ||
directory: / | ||
schedule: | ||
interval: daily | ||
versioning-strategy: increase-if-necessary | ||
|
||
# Ruby needs to be upgraded manually in multiple places, so cannot be upgraded by Dependabot. | ||
- package-ecosystem: docker | ||
ignore: | ||
- dependency-name: ruby | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: / | ||
schedule: | ||
interval: daily |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
bundle-audit: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
bundler-cache: true | ||
|
||
- name: Check bundle for known CVEs | ||
run: | | ||
bundle exec bundle-audit check --update | ||
brakeman: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
bundler-cache: true | ||
|
||
- name: Analyse code for vulnerabilities | ||
run: | | ||
bundle exec brakeman --no-pager | ||
rubocop: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
bundler-cache: true | ||
|
||
- name: Lint source code with rubocop | ||
run: | | ||
bundle exec rubocop | ||
rspec: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:16 | ||
ports: ["5432:5432"] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
bundler-cache: true | ||
|
||
- name: Setup test database | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
RAILS_ENV: test | ||
run: | | ||
bundle exec rake db:create db:schema:load | ||
- name: Compile assets | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
RAILS_ENV: test | ||
run: | | ||
bundle exec rake assets:precompile | ||
- name: Run rspec specs | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }} | ||
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }} | ||
RAILS_ENV: test | ||
run: | | ||
bundle exec rspec | ||
cucumber: | ||
runs-on: ubuntu-20.04 | ||
|
||
services: | ||
postgres: | ||
image: postgres:16 | ||
ports: ["5432:5432"] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
cache: "yarn" | ||
|
||
- name: Setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: "3.2" | ||
bundler-cache: true | ||
|
||
- name: Setup test database | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
RAILS_ENV: test | ||
run: | | ||
bundle exec rake db:create db:schema:load | ||
- name: Compile assets | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
RAILS_ENV: test | ||
run: | | ||
bundle exec rake assets:precompile | ||
- name: Run cucumber specs | ||
env: | ||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test | ||
RAILS_ENV: test | ||
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }} | ||
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }} | ||
run: | | ||
bundle exec cucumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.7.5 | ||
3.2.6 |
Oops, something went wrong.