Skip to content

Commit 5107f48

Browse files
authored
Merge branch 'main' into rss-feed
2 parents b99ffa9 + f0f840b commit 5107f48

File tree

90 files changed

+4595
-718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4595
-718
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,40 @@ jobs:
3939

4040
- name: erb-lint Check
4141
run: bundle exec erblint --lint-all
42+
test:
43+
runs-on: ubuntu-latest
44+
env:
45+
RAILS_ENV: test
46+
steps:
47+
- uses: actions/checkout@v3
48+
49+
- name: Setup Ruby
50+
uses: ruby/setup-ruby@v1
51+
with:
52+
bundler: default
53+
bundler-cache: true
54+
55+
- name: Setup Node
56+
uses: actions/setup-node@v3
57+
with:
58+
node-version: "18"
59+
cache: yarn
60+
61+
- name: Install dependencies
62+
run: yarn install --frozen-lockfile
63+
64+
- name: Build assets
65+
run: bin/vite build --clear --mode=test
66+
67+
- name: Prepare database
68+
run: |
69+
bin/rails db:create
70+
bin/rails db:schema:load
71+
72+
- name: Run tests
73+
run: |
74+
bin/rails test
75+
bin/rails test:system
76+
77+
# - name: Smoke test database seeds
78+
# run: sudo bin/rails db:reset

.gitignore

+8-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
/node_modules
3737

38-
/script
38+
/script_tmp
3939
.env
4040
.byebug_history
4141

@@ -45,9 +45,15 @@
4545
# https://vitejs.dev/guide/env-and-mode.html#env-files
4646
*.local
4747

48-
/data.ms
48+
/data.ms*
4949
/data_tmp
50+
/data_preparation/**/*
51+
!/data_preparation/organisations.yml
5052

5153
/config/credentials/production.key
5254

5355
test-run-report*
56+
57+
# Ignore SQLite databases create by Litestack for action cable to be removed once we are able to move them to storage
58+
db/*.db
59+
db/*.db-*

Gemfile

+10-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
44
ruby "3.2.0"
55

66
# Use main development branch of Rails
7-
gem "rails", github: "rails/rails", branch: "main"
7+
gem "rails", "~> 7.1.0"
88

99
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
1010
gem "propshaft"
@@ -28,7 +28,7 @@ gem "turbo-rails"
2828
# gem "cssbundling-rails"
2929

3030
# Use Redis adapter to run Action Cable in production
31-
gem "redis", ">= 4.0.1"
31+
# gem "redis", ">= 4.0.1"
3232

3333
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
3434
# gem "kredis"
@@ -58,13 +58,14 @@ group :development do
5858
gem "web-console"
5959

6060
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
61-
# gem "rack-mini-profiler"
61+
gem "rack-mini-profiler"
6262

6363
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
6464
# gem "spring"
6565

6666
gem "error_highlight", ">= 0.4.0", platforms: [:ruby]
67-
gem "ruby-lsp", "~> 0.5.1", require: false
67+
gem "ruby-lsp", require: false
68+
gem "ruby-lsp-rails", require: false
6869
gem "standardrb", "~> 1.0"
6970
gem "erb_lint", "~> 0.4.0"
7071
gem "authentication-zero", "~> 2.16"
@@ -73,15 +74,16 @@ end
7374
group :test do
7475
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
7576
gem "capybara"
77+
gem "rails-controller-testing"
7678
gem "selenium-webdriver"
77-
gem "webdrivers"
7879
gem "vcr", "~> 6.1"
7980
gem "webmock"
8081
end
8182

8283
gem "pagy", "~> 6.0"
8384
gem "dockerfile-rails", ">= 1.2", group: :development
84-
gem "litestack", "~> 0.2.3"
85+
gem "litestack"
86+
# gem "litestack", git: "[email protected]:oldmoe/litestack.git", branch: "master"
8587
gem "inline_svg", "~> 1.9"
8688
gem "net-http", "~> 0.3.2"
8789
gem "meilisearch-rails", "~> 0.9.1"
@@ -92,3 +94,5 @@ gem "meta-tags", "~> 2.18"
9294
gem "groupdate", "~> 6.2"
9395

9496
gem "appsignal", "~> 3.4"
97+
98+
gem "chartkick", "~> 5.0"

0 commit comments

Comments
 (0)