Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
b7ef5ed
Add tests for siteConfigurationLoader
sundflux Sep 19, 2025
3a14421
Update packages for security updates
sundflux Sep 23, 2025
0c4fa04
Remove console.logging
sundflux Sep 23, 2025
b029c86
Add migrate scripts for site_id for documents and schema.
sundflux Sep 23, 2025
d67ae05
Remove unnecessary comments
sundflux Sep 23, 2025
8913a58
Move elasticproxy to config json
sundflux Sep 25, 2025
8424c9d
Fix this diabolical bug finally, for some reason elastic index has no…
sundflux Sep 25, 2025
d4ee4fa
Testing instructions
sundflux Sep 26, 2025
3773efc
Add link to repo
sundflux Sep 26, 2025
c6d447c
Add all envs to config
sundflux Sep 26, 2025
b9fce6e
Update documentation
sundflux Sep 26, 2025
449bbdb
Add local env
sundflux Sep 26, 2025
0c7f84a
Fix the self-cert check to refer to local instead of dev, which doesn…
sundflux Sep 30, 2025
9816796
Merge pull request #30 from City-of-Helsinki/UHF-12154
sundflux Sep 30, 2025
229582e
Adds linter packages
sundflux Oct 1, 2025
ec54091
Add linter configs
sundflux Oct 1, 2025
d783bf9
Add ESLint with Airbnb TypeScript style guide
sundflux Oct 1, 2025
e9d6ca4
Add Biome instead of eslint
sundflux Oct 2, 2025
b900ab5
Biome linter fixes
sundflux Oct 2, 2025
4efada3
Fix linter damage
sundflux Oct 2, 2025
73b7f91
Biome linter fixes
sundflux Oct 3, 2025
56056ad
Add lint:check to build:ts
sundflux Oct 6, 2025
68acbb2
Oops :) Remove bash history
sundflux Oct 6, 2025
2be0939
Merge pull request #31 from City-of-Helsinki/UHF-12337
sundflux Oct 6, 2025
f218ec6
Attempt to fix openshift Dockerfile
sundflux Oct 9, 2025
21573dc
Merge pull request #34 from City-of-Helsinki/UHF-X-hotfix-dockerfile
sundflux Oct 9, 2025
ad750b9
Refactor hakuvahti dockerfile
hyrsky Oct 9, 2025
87c5535
Change paths in cron scripts
sundflux Oct 9, 2025
474fc72
Remove chmod since copy should handle it
hyrsky Oct 9, 2025
60a4b73
Merge pull request #35 from City-of-Helsinki/UHF-X-refactor-dockerfile
sundflux Oct 9, 2025
cdd34e9
Change back to /app
hyrsky Oct 9, 2025
e428c2b
Adds --site and --dry-run parameters for populate script
sundflux Oct 8, 2025
6290040
Forward parameters to NPM
sundflux Oct 10, 2025
9cf9a31
Merge pull request #33 from City-of-Helsinki/UHF-12280
sundflux Oct 10, 2025
c67446d
Change back to app here too
sundflux Oct 15, 2025
c7ecb82
Merge pull request #36 from City-of-Helsinki/UHF-X-refactor-dockerfile
sundflux Oct 15, 2025
1165662
feat: Add optional SMS parameter to subscription API
sundflux Oct 2, 2025
edb6fa2
Move validation funcs to controller
sundflux Oct 7, 2025
bec5077
Validate SMS format before saving to ATV
sundflux Oct 7, 2025
835aca7
Add SMS collection
sundflux Oct 7, 2025
acc3644
Add script to send sms
sundflux Oct 7, 2025
ecbe962
Add Dialogi SMS plugin and sms queue script. never tested, totally bl…
sundflux Oct 7, 2025
ab54c10
Set review database variables by Ansible scripts
Oct 16, 2025
189b6f4
Add missing sms queue generating in populate script, test script for …
sundflux Oct 16, 2025
0017e30
Target url was wrong
sundflux Oct 17, 2025
f49c410
Add some missing stuff to dialogi
sundflux Oct 22, 2025
e9af812
add validateElasticQuery to validate queries sent to hakuvahti
sundflux Oct 22, 2025
340153d
Update helfi-hakuvahti-dev.yml
hyrsky Oct 22, 2025
f56ba60
Use correct CMD in dockerfile
hyrsky Oct 22, 2025
e1ea20f
Silence fastify default logging for health routes
sundflux Oct 22, 2025
f0ac50c
Delete pipelines/helfi-hakuvahti-review.yml
hyrsky Oct 22, 2025
e8e7f22
Merge pull request #37 from City-of-Helsinki/initial_project_setup
hyrsky Oct 22, 2025
b7358e0
Remove lint:check from build
sundflux Oct 23, 2025
7155be6
Fix nodemailer security
sundflux Oct 23, 2025
176b0f4
feat: Add optional SMS parameter to subscription API
sundflux Oct 2, 2025
4d3d8e7
Move validation funcs to controller
sundflux Oct 7, 2025
73feef6
Validate SMS format before saving to ATV
sundflux Oct 7, 2025
e6bed9a
Add SMS collection
sundflux Oct 7, 2025
4adec52
Add script to send sms
sundflux Oct 7, 2025
9df1bae
Add Dialogi SMS plugin and sms queue script. never tested, totally bl…
sundflux Oct 7, 2025
db2187b
Add missing sms queue generating in populate script, test script for …
sundflux Oct 16, 2025
e29744d
Target url was wrong
sundflux Oct 17, 2025
6fd09a5
Add some missing stuff to dialogi
sundflux Oct 22, 2025
2a8b67b
Merge branch 'UHF-12155-rebased2' of github.com:City-of-Helsinki/helf…
sundflux Oct 24, 2025
c42173b
Return object type according to documentation, hope its correct
sundflux Oct 24, 2025
6c1ea8f
Add dummy server for sms testing
sundflux Oct 24, 2025
c59a290
log sms message id
sundflux Oct 24, 2025
aab92f7
Log messageid but not destination
sundflux Oct 24, 2025
43668ff
Remove some logging
sundflux Oct 24, 2025
4f351e3
Merge pull request #39 from City-of-Helsinki/UHF-12396
sundflux Oct 24, 2025
d5ba8d3
Add a fix script for bug UHF-12396
sundflux Oct 27, 2025
3e8a3dd
Remove lint from build, node mailer update was not committed for some…
sundflux Oct 28, 2025
bcd2e0a
Merge pull request #40 from City-of-Helsinki/UHF-12396-fix-script
sundflux Oct 29, 2025
2e6b783
Update dialog api url to be correct
sundflux Oct 29, 2025
8cb1c83
Cron bash scripts not needed anymore
sundflux Oct 29, 2025
1256b12
Rename populate script
sundflux Oct 29, 2025
d675ca3
Rename populate script, implement limit of results in email, quick fe…
sundflux Oct 29, 2025
f5d7c43
Get rid of ATV call in populate loop by adding a simple has_sms flag …
sundflux Oct 29, 2025
39decde
Merge pull request #38 from City-of-Helsinki/UHF-12155-rebased2
sundflux Nov 3, 2025
5eabfc4
Implement subscription status
sundflux Nov 3, 2025
cc6d408
Implement hakuvahti renewe
sundflux Nov 4, 2025
0b1185d
Update sonarcube
sundflux Nov 4, 2025
18431b3
Merge pull request #43 from City-of-Helsinki/UHF-x-update-sonarcube
sundflux Nov 4, 2025
0136103
Update ATV document with renew
sundflux Nov 4, 2025
c2b2dad
Okay, sending ALL fields to ATV makes the API fail with very descript…
sundflux Nov 10, 2025
6085e05
Biome formatting
sundflux Nov 11, 2025
6e0fde2
Fix failing test, we use local now instead of dev, also elasticProxyU…
sundflux Nov 11, 2025
7c4c8ed
Biome wants formatting
sundflux Nov 11, 2025
21b6d3e
Add test for renewSubscription
sundflux Nov 11, 2025
b97f326
Merge pull request #42 from City-of-Helsinki/UHF-12476
sundflux Nov 11, 2025
f2c334a
Merge pull request #44 from City-of-Helsinki/UHF-12422
sundflux Nov 11, 2025
b723100
Hotfix, remove duplicate type. No idea how this got through
sundflux Nov 13, 2025
abee0a6
Merge pull request #45 from City-of-Helsinki/UHF-X-duplicatetype
sundflux Nov 13, 2025
8891226
Update node version to match the one deployed to openshift
hyrsky Nov 14, 2025
eae0df2
Move c8 to devDependencies
hyrsky Nov 14, 2025
5d5ea9c
Remove redundant npm run copy:assets calls from defined commands
hyrsky Nov 14, 2025
25438e1
Run tests on CI
hyrsky Nov 14, 2025
5b03c48
Remove useless override of make up
hyrsky Nov 14, 2025
dedf27c
Simplify tools
hyrsky Nov 14, 2025
6c71f85
Add github reporter to lint check
hyrsky Nov 14, 2025
b76ce7d
Simplify testing
hyrsky Nov 14, 2025
27e1126
Simplify docker compose network
hyrsky Nov 14, 2025
e902f96
Debug tests
hyrsky Nov 14, 2025
1b7af81
Update c8
hyrsky Nov 14, 2025
b70d4a1
Try test-force-exit
hyrsky Nov 14, 2025
1f39f05
Add timeout
hyrsky Nov 14, 2025
c7ad331
Try this
hyrsky Nov 14, 2025
46c82e5
Add --ignore-scripts
hyrsky Nov 14, 2025
f023f55
Cleanup
hyrsky Nov 14, 2025
f07fab9
Fix typo
hyrsky Nov 14, 2025
a3ac809
Merge pull request #46 from City-of-Helsinki/UHF-12346
hyrsky Nov 17, 2025
a75b16e
Resolve sonarcloud issues
hyrsky Nov 17, 2025
e3e5ce1
Add editorconfig
hyrsky Nov 17, 2025
32c3f73
Remove legacy pipeline files
hyrsky Nov 17, 2025
05e3921
Fix typo
hyrsky Nov 17, 2025
4f68de2
Remove console script boilerplate code
hyrsky Nov 17, 2025
629e9f5
Remove @types/tap
hyrsky Nov 18, 2025
1f8fd58
Update @types/node to match current NodeJS version
hyrsky Nov 18, 2025
453c5b3
Run tests only from *.test.ts
hyrsky Nov 18, 2025
c9805dc
Add tests for src/lib/command.ts
hyrsky Nov 18, 2025
b22d0c7
Add process manager wrapper for development container
hyrsky Nov 18, 2025
a935570
Add tests for /subscription/confirm and /subscription/delete APIs
hyrsky Nov 18, 2025
395ddbd
Various notes
hyrsky Nov 18, 2025
1b651d4
Fix renewSubscription.test.ts
hyrsky Nov 18, 2025
bb3907d
Add tests for /subscription/status
hyrsky Nov 18, 2025
b5e1352
Add tests for probes
hyrsky Nov 18, 2025
02257f0
Run biome fix
hyrsky Nov 18, 2025
15ab735
Add tests for email sending
hyrsky Nov 18, 2025
9708fba
Remove env variables that should not be changed from .env file
hyrsky Nov 18, 2025
906940d
Misc comments
hyrsky Nov 18, 2025
319a9e5
Simplify signature, rely on type inference
hyrsky Nov 18, 2025
85e9b1a
Add tests for sms sending
hyrsky Nov 18, 2025
43873af
Various comments
hyrsky Nov 18, 2025
a9ddb55
Merge pull request #47 from City-of-Helsinki/UHF-12517-quality-gate
hyrsky Nov 19, 2025
5cb1da6
Fix race condition in the tests
hyrsky Nov 19, 2025
2f9f449
Fix sms test too
hyrsky Nov 19, 2025
cf452af
Merge pull request #49 from City-of-Helsinki/UHF-12517
hyrsky Nov 19, 2025
7b251b6
Add email translations and template system improvements
sundflux Nov 17, 2025
1b95ee7
Add api key to hakuvahti
hyrsky Nov 24, 2025
155db7a
Add tests /subscription route
hyrsky Nov 24, 2025
61fcd7a
Add text reporter to test command
hyrsky Nov 24, 2025
3c1d5c5
Install node_modules with correct permissions
hyrsky Nov 24, 2025
9d00fc6
Debug permissions
hyrsky Nov 24, 2025
97f3965
Add some more padding
sundflux Nov 24, 2025
89326e1
Remove for now, although could be used for datestamps in mail..
sundflux Nov 24, 2025
6c1adfa
Update new content and translations
sundflux Nov 24, 2025
4a84a49
Fix dependabot security issue
hyrsky Nov 24, 2025
cecf5b5
Merge pull request #50 from City-of-Helsinki/UHF-12517
hyrsky Nov 25, 2025
2574b85
Sonarcloud
hyrsky Nov 25, 2025
e1c9d86
Merge pull request #51 from City-of-Helsinki/UHF-12517
hyrsky Nov 25, 2025
14ea06b
Simplify the email templates html structure a bit, add comprehensive …
teroelonen Nov 25, 2025
01fccbe
Add test script to test all email templates
sundflux Nov 26, 2025
ebad689
Biome lint
sundflux Nov 26, 2025
1fe6719
Bump target to ES2020 as ES5 complains about command() structure
sundflux Nov 26, 2025
91e411d
Make preValidation non-async
hyrsky Nov 26, 2025
a7f7c9a
Merge pull request #52 from City-of-Helsinki/UHF-X-sonarcloud
hyrsky Nov 26, 2025
a33cf7f
Adjust new hits email base layouts
teroelonen Nov 26, 2025
cea1d8d
New email texts
sundflux Nov 26, 2025
f51acd2
New text tags for templates
sundflux Nov 26, 2025
19075ff
Move expiry date calculation so newhits template can also use it
sundflux Nov 26, 2025
1e1a4a6
Add expiry_date to newhits
sundflux Nov 26, 2025
779db9d
Add expiry date to test script
sundflux Nov 26, 2025
d2e1214
Conflicts
sundflux Nov 26, 2025
f64cad3
Adjust new hits email base layouts
teroelonen Nov 26, 2025
b62be22
Fix translation tag name typo
sundflux Nov 26, 2025
7e4db2c
Merge branch 'UHF-12472' of github.com:City-of-Helsinki/helfi-hakuvah…
sundflux Nov 26, 2025
575a6be
Add renewal_link to expiry mail
sundflux Nov 26, 2025
fd6c6a9
Add renewal_link to test script
sundflux Nov 26, 2025
fcb67c8
Add renewal link to populate script
sundflux Nov 26, 2025
181c216
These translations are missing so temporary about so-so texts for expiry
sundflux Nov 26, 2025
5a858ce
update expiry notification style
sundflux Nov 26, 2025
5ee1e0f
Add missing variables to expiry template and new texts
sundflux Nov 26, 2025
9229207
Update ATV addresses
hyrsky Nov 26, 2025
3d727ef
Update subjects
sundflux Nov 26, 2025
bcd46f4
Merge pull request #53 from City-of-Helsinki/UHF-12530
hyrsky Nov 26, 2025
b46df82
Fix sonarcloud warning, tyopeof unnecessary
sundflux Nov 26, 2025
c03d7b6
Add couple tests to increase coverage
sundflux Nov 26, 2025
82f3b4d
Try adding minimal smoke test for coverage
sundflux Nov 26, 2025
6eb2e97
Well that didn't affect coverage at all
sundflux Nov 26, 2025
995d39f
Refactor test email script to have testable function and add test for…
sundflux Nov 27, 2025
be15840
Lets see what happens in sonarcloud now
sundflux Nov 27, 2025
add5bc4
Add typing for this should finally fix sonarcloud
sundflux Nov 27, 2025
1704509
Merge pull request #48 from City-of-Helsinki/UHF-12472
sundflux Nov 27, 2025
1779690
For staging, change expire notification to happen after 1 day
sundflux Dec 1, 2025
352778a
Merge pull request #55 from City-of-Helsinki/UHF-12478
sundflux Dec 1, 2025
297d75c
Expire dev subscriptions also within a day
sundflux Dec 3, 2025
eab4de6
Merge pull request #56 from City-of-Helsinki/UHF-12478-dev-config
sundflux Dec 3, 2025
de0646c
Add fromDate parameter to atv delete_after updating + update renewSub…
sundflux Dec 4, 2025
b86bf72
Add update subscription length script.
sundflux Dec 4, 2025
5f0c2e9
Biome lint
sundflux Dec 4, 2025
7cef147
Add this to separate PR
sundflux Dec 4, 2025
e777588
Fix review comments: parameters from command argv, biome doesn't need…
sundflux Dec 4, 2025
548a769
Move prints and date formatting to own functions for test coverage
sundflux Dec 4, 2025
ebfd298
Refactor a bit for test coverage, command wrapper now handles errors …
sundflux Dec 5, 2025
96e2d41
parseArgs got dead in command argv change. shorten dryRun logic
sundflux Dec 5, 2025
1e8210c
Remove test noise
sundflux Dec 5, 2025
e74a85e
Add scripts to exclude that should not be tested
sundflux Dec 5, 2025
ba89f8c
Coverage exclusion
sundflux Dec 5, 2025
e5f9d14
SQ tuning
sundflux Dec 5, 2025
1c6b272
Merge pull request #57 from City-of-Helsinki/UHF-12475
sundflux Dec 5, 2025
eb3fdc9
Translate copyright holder too
sundflux Nov 27, 2025
96a3999
Add logo image link to translations
sundflux Dec 5, 2025
af98d1f
Replace SVG logo with png logo
sundflux Dec 5, 2025
50a8d61
Merge pull request #54 from City-of-Helsinki/UHF-12472-feedback-fixes
sundflux Dec 8, 2025
ec39610
Brain error: expiryNotificationDays does not mean sending notificatio…
sundflux Dec 8, 2025
f9a92e5
Merge pull request #59 from City-of-Helsinki/UHF-X-fix-notification-date
sundflux Dec 8, 2025
5de453a
Add production instruction links
sundflux Dec 8, 2025
a59604c
Merge pull request #60 from City-of-Helsinki/UHF-12472-instruction-links
sundflux Dec 8, 2025
dc9e28a
production subscription length to 6 months, notification 5 days befor…
sundflux Dec 10, 2025
3952622
Merge pull request #61 from City-of-Helsinki/UHF-X-release-conf
sundflux Dec 10, 2025
0a23632
Update helfi-hakuvahti-release.yml
hyrsky Dec 10, 2025
cad23bd
Merge pull request #62 from City-of-Helsinki/UHF-12530-tag-format
hyrsky Dec 10, 2025
19ed06e
Update helfi-hakuvahti-release.yml
hyrsky Dec 10, 2025
0fc35c9
Remove migration scripts
sundflux Dec 11, 2025
d39e933
remove scripts from sonarcloud exclude
sundflux Dec 11, 2025
35857a0
Updated the email texts for the rekry saved search
teroelonen Dec 11, 2025
c425a7c
Merge pull request #65 from City-of-Helsinki/UHF-12672
sundflux Dec 12, 2025
f4b79d9
Add delete_after to types
sundflux Dec 16, 2025
dca7ce2
Add delete_after in renew and addsubscription to mongo
sundflux Dec 16, 2025
14fc6f7
Calculate in populate script if the delete_after needs to be synced
sundflux Dec 16, 2025
7ee6234
Couple simple tests to test calculateExpectedDeleteAfter and needsDel…
sundflux Dec 16, 2025
589724c
Test delete_after in renew and addSubscription
sundflux Dec 16, 2025
f9abe5a
Merge pull request #66 from City-of-Helsinki/UHF-12473
teroelonen Dec 16, 2025
94105d8
Merge pull request #67 from City-of-Helsinki/UHF-12673
sundflux Dec 19, 2025
aac379a
Nodemaile Security Update
sundflux Dec 30, 2025
712d6bc
Link to smaller email logos
sundflux Jan 2, 2026
ea36b01
Add npm audit to pipelines (#70)
hyrsky Jan 2, 2026
50b19cf
Merge pull request #69 from City-of-Helsinki/UHF-X-smaller-logos
sundflux Jan 2, 2026
bdf3b8c
Merge pull request #68 from City-of-Helsinki/UHF-X-security-update-no…
sundflux Jan 2, 2026
e8216c8
Updated lodash and diff.
khalima Jan 27, 2026
4f94bf1
Merge pull request #71 from City-of-Helsinki/UHF-12747
khalima Jan 27, 2026
c994e5f
Refactor ATV a bit, we are saving more stuff to ATV so createDocument…
sundflux Feb 5, 2026
921bafa
Validate elastic query also from _atv variable. If sent this way, the…
sundflux Feb 5, 2026
7ee9a1f
Refactor API after all, no extra validation needed here..
sundflux Feb 5, 2026
b8c2e61
Create ATV document for query if elastic_query_atv is ste in request
sundflux Feb 5, 2026
921eb7b
Load query from ATV if elastic_query_atv flag is set
sundflux Feb 5, 2026
8a74cea
update tests for elastic_search_atv 1 flag
sundflux Feb 5, 2026
fa469cb
biome
sundflux Feb 9, 2026
0bd2ee0
update fastify
sundflux Feb 9, 2026
dfe4274
Merge pull request #72 from City-of-Helsinki/UHF-12722
sundflux Feb 10, 2026
f6d5beb
Change ElasticSearch url
sundflux Feb 12, 2026
f774f2c
security update
sundflux Feb 12, 2026
e86f580
Merge pull request #75 from City-of-Helsinki/UHF-X-hotfix-elastic
sundflux Feb 12, 2026
c27dd11
Update production URL for Elastic
sundflux Feb 17, 2026
ab38402
Merge pull request #77 from City-of-Helsinki/UHF-X-hotfix-elastic-url
sundflux Feb 17, 2026
d877982
Add placeholder config for kymp (#76)
hyrsky Feb 20, 2026
5d171de
Testing conf
sundflux Feb 20, 2026
89bc903
Merge pull request #78 from City-of-Helsinki/UHF-X-testing-conf
sundflux Feb 20, 2026
5ae42dc
Fix kymp elasticsearch URL (#79)
hyrsky Feb 20, 2026
b53b9d6
Fix sms sending & refactor queue implementation (#80)
hyrsky Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules
# npm-debug.log
# Dockerfile
# .dockerignore
.git
# .gitignore
# .gitignore
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @see http://editorconfig.org/

# This is the top-most .editorconfig file; do not search in parent directories.
root = true

# All files.
[*]
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
31 changes: 19 additions & 12 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
ENVIRONMENT=dev
FASTIFY_PORT=3000
MONGODB=mongodb://mongodb:27017/hakuvahti
# Environment configuration
ENVIRONMENT=local

# Sentry error monitoring
SENTRY_DSN=

# External services
ELASTIC_PROXY_URL=https://elastic-helfi-rekry.docker.so
BASE_URL=https://helfi-rekry.docker.so
BASE_URL_EN=https://helfi-rekry.docker.so/en
BASE_URL_FI=https://helfi-rekry.docker.so/fi
BASE_URL_SV=https://helfi-rekry.docker.so/sv
ATV_API_KEY=xxx
ATV_API_URL=https://atv-api-hki-kanslia-atv-test.agw.arodevtest.hel.fi
SUBSCRIPTION_MAX_AGE=90
UNCONFIRMED_SUBSCRIPTION_MAX_AGE=5
SUBSCRIPTION_EXPIRY_NOTIFICATION_DAYS=3
ATV_API_URL=https://atv.api.test.hel.ninja

# Mail server configuration
MAIL_FROM=noreply@hel.fi
MAIL_HOST=host-machine.local
MAIL_PORT=1025
MAIL_SECURE=
MAIL_AUTH_USER=
MAIL_AUTH_PASS=
MAIL_TEMPLATE_PATH=rekry

# Elisa Dialogi SMS service
DIALOGI_API_URL=https://viestipalvelu-api.elisa.fi/api/v1
DIALOGI_API_KEY=
DIALOGI_SENDER=

# Testing
TEST_SMS_NUMBER=

HAKUVAHTI_API_KEY='123'
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
pull_request:
push:
branches: ['main', 'dev']
name: CI
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
repository: druidfi/stonehenge

- name: Install and start Stonehenge
run: make up

- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Start hakuvahti
run: make fresh

- name: Lint
run: docker compose exec app bash -c "npx biome ci src --reporter=github --colors=off"

- name: Run tests
run: make test-ci

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: NPM Audit
run: docker compose exec app bash -c "npm audit"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ test/types/index.js

# compiled app
dist

# Misc
.less-history-file
.lesshst
.bash_history
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/iron
lts/jod
13 changes: 0 additions & 13 deletions Dockerfile

This file was deleted.

Loading
Loading