Vesa Jolkkonen
d587397a79
Add secret inheritance for test action
2024-03-17 16:25:05 +02:00
Vesa Jolkkonen
2311e42908
Run eslint and cypress parallel
2024-03-15 16:55:49 +02:00
Vesa Jolkkonen
8bd328a4e8
Reverse eslint version back to 5.12.0
2024-03-15 16:40:57 +02:00
Vesa Jolkkonen
3f9f022a71
merge new changes from main
2024-03-15 16:35:51 +02:00
Vesa Jolkkonen
4f3d54d755
Retry to update package-lock.json
2024-03-15 13:39:42 +02:00
Vesa Jolkkonen
b56e01c07c
Update package-lock.json
2024-03-15 13:36:25 +02:00
Vesa Jolkkonen
99a1b58c03
Reverse changes and use npm ci --production
2024-03-15 13:32:23 +02:00
Vesa Jolkkonen
761f8ef4cd
Use npm ci to install dependencies
2024-03-15 13:14:28 +02:00
Vesa Jolkkonen
bb11a7c25f
Merge to main
2024-03-15 13:00:58 +02:00
Vesa Jolkkonen
4b9535439c
Define licence on project root
2024-03-15 12:58:46 +02:00
Vesa Jolkkonen and Antti Aarnio
9d47e8d8bc
Update outdated test user headers
2024-03-12 14:20:32 +02:00
Vesa Jolkkonen and Antti Aarnio
b91a3e65cd
Add cypress@3.8.3 to devDependencies and make a script for running tests
2024-03-12 14:20:32 +02:00
Vesa Jolkkonen and Antti Aarnio
47e5f7e533
Always use DATABASE_URL env for sequelize connection
2024-03-12 14:20:31 +02:00
Vesa Jolkkonen and Antti Aarnio
d5f710c600
Add npm script for starting backend server for testing
2024-03-12 14:20:30 +02:00
Vesa Jolkkonen
8efbcaf279
Remove e2e ignorePattern as it produces error
2024-03-12 11:14:01 +02:00
Vesa Jolkkonen
816d5eef45
Define licence on project root
2024-03-12 11:10:04 +02:00
Vesa Jolkkonen
0e6d0a9eb2
Use node 12 in GitHub Actions
2024-03-09 18:23:41 +02:00
Vesa Jolkkonen
f0d31495fb
Merge branch 'main' into redfox-workflow_rewrite
2024-03-09 17:51:50 +02:00
Vesa Jolkkonen
a252a16506
Simplify Sequelize setup
2024-03-09 17:50:15 +02:00
Vesa Jolkkonen
554c9a06d5
Improve database connection security
2024-03-09 12:55:51 +02:00
Vesa Jolkkonen
ed70e1c2fc
Eliminate deprecation warning about postgres ssl
2024-03-09 12:34:48 +02:00
Vesa Jolkkonen
42f35ca63e
Fix config file for Sequelize CLI
2024-03-09 11:19:23 +02:00
Vesa Jolkkonen
dfd0406bc2
Add correct tags to images for OpenShift staging
2024-03-09 11:17:35 +02:00
Vesa Jolkkonen
ad9518bf21
Add ssl parameter for Sequelize CLI
2024-03-08 16:32:24 +02:00
Vesa Jolkkonen
25571cc0c5
Merge branch 'main' into redfox-workflow_rewrite
2024-03-08 16:16:59 +02:00
Vesa Jolkkonen
6cace947e2
Remove skips used for setting up GitHub Actions
2024-03-08 16:15:22 +02:00
Vesa Jolkkonen
8b7fb40def
Delete outdated GitHub Actions workflow file
2024-03-08 16:09:37 +02:00
Vesa Jolkkonen
2c5933158b
Use npm install instead of ci
2024-03-08 16:00:42 +02:00
Vesa Jolkkonen
d524800239
Remove browser matrix from GitHub Actions
2024-03-08 15:58:22 +02:00
Vesa Jolkkonen
bb6289482e
Add browser matrix to GitHub Actions test workflow
2024-03-08 15:32:36 +02:00
Vesa Jolkkonen
e15475a62a
Remove test branch from GitHub Actions triggers
2024-03-08 15:30:40 +02:00
Vesa Jolkkonen
5f5e6ba479
Run GitHub Actions test workflow in any branch
2024-03-08 15:13:24 +02:00
Vesa Jolkkonen
8493563acd
Delete waiting parameter from Cypress test setup
2024-03-08 14:57:20 +02:00
Vesa Jolkkonen
94c920e693
Add Cypress record to GitHub Actions
2024-03-08 14:51:29 +02:00
Vesa Jolkkonen
d41d3c315b
Checkout files in GitHub Actions before build
2024-03-07 13:58:31 +02:00
Vesa Jolkkonen
edda859a8c
Use tag 'staging' in images pulled to quay.io
2024-03-07 13:50:21 +02:00
Vesa Jolkkonen
6807189d33
Skip failing test for testing GitHub Actions
2024-03-07 13:45:07 +02:00
Vesa Jolkkonen
65ae35ee7f
Skip failing tests for testing GitHub Actions
2024-03-07 13:38:31 +02:00
Vesa Jolkkonen
e16ae84385
Add baseUrl for Cypress in GitHub Actions
2024-03-07 12:48:04 +02:00
Vesa Jolkkonen
1ada0aee38
Add Node version for running tests
2024-03-07 11:52:01 +02:00
Vesa Jolkkonen
7555d11619
Add DATABASE_URL for testing in GitHub Actions
2024-03-07 11:45:24 +02:00
Vesa Jolkkonen
2370d8512a
Fix error in backend path
2024-03-07 11:41:45 +02:00
Vesa Jolkkonen
12b46b5258
Start containers with docker compose
2024-03-07 11:38:59 +02:00
Vesa Jolkkonen
a3fe8152e2
Modify homepage parameter for clarity
2024-03-07 11:28:23 +02:00
Vesa Jolkkonen
9745975353
Add compose file for GitHub Actions
2024-03-07 11:27:30 +02:00
Vesa Jolkkonen
c6ac17eff7
Add nginx.conf file for e2e testing
2024-03-07 11:26:44 +02:00
Vesa Jolkkonen
349dc44d68
Use relative homepage
2024-03-06 20:47:26 +02:00
Vesa Jolkkonen
c08c72581d
Install only production dependencies for CI images
2024-03-06 20:46:42 +02:00
Vesa Jolkkonen
9b725d8352
Simplify Sequelize CLI setup
2024-03-06 20:45:13 +02:00
Vesa Jolkkonen
d555256379
Move image building back to staging.yaml
2024-03-06 10:24:09 +02:00
Vesa Jolkkonen
89ccdbd794
Add debug prints
2024-03-06 10:14:37 +02:00
Vesa Jolkkonen
6a32344e30
Add checkout command
2024-03-06 10:03:41 +02:00
Vesa Jolkkonen
caff328749
Add echoing for testing purposes
2024-03-06 09:59:31 +02:00
Vesa Jolkkonen
bd9c8a1665
Comment out frontend build for testing purposes
2024-03-06 09:58:45 +02:00
Vesa Jolkkonen
918aff69ca
Move image building to test.yaml
2024-03-06 09:12:26 +02:00
Vesa Jolkkonen
c876f29a3e
Build images before e2e tests
2024-03-06 09:12:00 +02:00
Vesa Jolkkonen
85621f7568
Install dependencies using ci
2024-03-05 14:34:18 +02:00
Vesa Jolkkonen
a0cdcec326
Install only devDependencies
2024-03-05 14:31:12 +02:00
Vesa Jolkkonen
e4bce4b2d3
Delete unnecessary lines
2024-03-05 14:27:47 +02:00
Vesa Jolkkonen
f705970280
Run tests before pushing images
2024-03-05 14:24:51 +02:00
Vesa Jolkkonen
6b802ce72f
Add test.yaml for running linter and e2e tests
2024-03-05 14:23:50 +02:00
Vesa Jolkkonen
502c305b11
Omit devDependencies from images
2024-03-05 14:23:04 +02:00
Vesa Jolkkonen
6c538519fe
Add frontend building and pushing
2024-03-05 13:29:18 +02:00
Vesa Jolkkonen
6bcce78cb9
Use tag latest
2024-03-05 13:18:26 +02:00
Vesa Jolkkonen
264685bb6a
Delete unnecessary build-args
2024-03-05 13:17:23 +02:00
Vesa Jolkkonen
f827c7f5b6
Reverse unnecessary changes for COPY package.json
2024-03-05 13:13:48 +02:00
Vesa Jolkkonen
8d0b47c0a5
Delete branch based script
2024-03-05 13:13:14 +02:00
Vesa Jolkkonen
1aabc5e32a
Delete unnecessary dockerfile from root
2024-03-05 13:12:36 +02:00
Vesa Jolkkonen
df9c4f52d0
Fix containterfile path
2024-03-05 13:08:01 +02:00
Vesa Jolkkonen
61f81d1efd
Add context to build step
2024-03-05 13:06:09 +02:00
Vesa Jolkkonen
9794e27563
Use dockerfile from backend folder
2024-03-05 12:57:10 +02:00
Vesa Jolkkonen
7144f4200f
Try realtive path for package.json
2024-03-05 12:54:53 +02:00
Vesa Jolkkonen
1616490e53
Use dockerfile from root
2024-03-05 11:56:56 +02:00
Vesa Jolkkonen
954e531484
Add backend dockerfile to root
2024-03-05 11:53:34 +02:00
Vesa Jolkkonen
7c59b9f00b
Try to checkout only backend folder
2024-03-05 11:47:23 +02:00
Vesa Jolkkonen
acbf614a24
Copy package.json and package-lock.json explicitly
2024-03-05 11:41:51 +02:00
Vesa Jolkkonen
4f4955ae65
Fix checkout command
2024-03-05 11:29:07 +02:00
Vesa Jolkkonen
6363ab3078
Run staging.yaml also when pushing to test branch
2024-03-05 11:00:15 +02:00
Vesa Jolkkonen
d0829426f0
Run build.yaml only when called
2024-03-05 10:59:30 +02:00
Vesa Jolkkonen
a314917b9a
Add staging.yaml
2024-03-05 10:39:57 +02:00
Vesa Jolkkonen
c487d313a5
Merge branch 'main' into redfox-workflow_rewrite
2024-03-05 10:29:52 +02:00
Vesa Jolkkonen
0b325596a4
Update outdated test user headers
2024-02-28 13:45:41 +02:00
Vesa Jolkkonen
45684d499f
Add cypress@3.8.3 to devDependencies and make a script for running tests
2024-02-28 13:45:00 +02:00
Vesa Jolkkonen
61ee972b82
Always use DATABASE_URL env for sequelize connection
2024-02-28 13:38:46 +02:00
Vesa Jolkkonen
075bc054b1
Add npm script for starting backend server for testing
2024-02-28 13:37:54 +02:00
Vesa Jolkkonen
2152f7aa8b
Revert changes for sequelize production setup
...
Logging was accidentally turned off so this commit will revert changes.
Also dialect option is not needed in production, it was tried for staging
setup and the changes was forgotten to revert.
2024-02-25 17:31:38 +02:00
Vesa Jolkkonen
2917f602a8
Disable seqelize logging from development environment
2024-02-25 17:30:44 +02:00
Vesa Jolkkonen and Ismo Mehdi
945c030059
Fix wrong relative path for ../utils/index
2024-02-25 12:08:50 +02:00
Vesa Jolkkonen and Ismo Mehdi
15e55f68fc
Reverse base image change as it is not needed for fixing OpenShift setup
2024-02-25 12:08:50 +02:00
Vesa Jolkkonen and Ismo Mehdi
29becbfe09
Set operatorAliases 0 instead of false because false is deprecated
2024-02-25 12:08:50 +02:00
Vesa Jolkkonen and Ismo Mehdi
8a3244dec0
Reverse unnecessary changes of backendcontainer env variables
2024-02-25 12:08:49 +02:00
Vesa Jolkkonen and Ismo Mehdi
34c27fd360
Add .env and *.sql to dockerignore
2024-02-25 12:08:49 +02:00
Vesa Jolkkonen and Ismo Mehdi
3584fca804
Changes for running npm db scripts on OpenShift
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
b76f7e88df
Fix backend image name
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
f6c4ddb9a8
Fix docker-compose.yml for OpenShift
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
8f0a80f600
Set host to localhost instead of db
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
cf5a0af5c1
Change homepage to shibboleth page
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
fc3e5a5ab5
Add dialect setup for production mode
2024-02-25 12:07:19 +02:00
Vesa Jolkkonen and Ismo Mehdi
7b0bb1a928
Add .dockerignore for node_modules
2024-02-25 12:07:18 +02:00
Vesa Jolkkonen and Ismo Mehdi
32421de579
Add correct homepage for Openshift Staging
2024-02-25 12:07:18 +02:00