Skip to content

Commit f9ccdf6

Browse files
authored
Merge pull request #1143 from UniversityOfHelsinkiCS/vite2
Vite migration
2 parents c6d1a0a + eea2c85 commit f9ccdf6

File tree

419 files changed

+6638
-2762
lines changed

Some content is hidden

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

419 files changed

+6638
-2762
lines changed

.codeclimate.yml

100644100755
File mode changed.

.eslintignore

100644100755
File mode changed.

.eslintrc

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"react-hooks/rules-of-hooks": "error",
3737
"prettier/prettier": "error",
3838
"no-console": "error",
39+
"import/no-named-as-default-member": "off",
40+
"import/extensions": "off",
3941
"no-param-reassign": [
4042
"error",
4143
{

.github/workflows/debug.yml

100644100755
File mode changed.

.github/workflows/feature_branches.yml

100644100755
Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: docker compose up -d
4646

4747
- name: seed db
48-
run: docker exec lomake_dev bash -c "node index.js seed"
48+
run: docker exec lomake_dev bash -c "node server/index.js seed"
4949

5050
- name: Run cypress tests with retry
5151
uses: nick-fields/retry@v3
@@ -65,3 +65,36 @@ jobs:
6565
with:
6666
name: Cypress screenshots
6767
path: /home/runner/work/lomake/lomake/cypress/screenshots
68+
69+
70+
build:
71+
name: 'Build and publish staging image'
72+
needs:
73+
- tests
74+
runs-on: ubuntu-latest
75+
76+
steps:
77+
- uses: actions/checkout@v4
78+
79+
- name: Build image
80+
id: build-image
81+
uses: redhat-actions/buildah-build@v2
82+
with:
83+
image: lomake
84+
tags: staging ${{ github.sha }}
85+
containerfiles: |
86+
./Dockerfile
87+
build-args: |
88+
BASE_PATH=/tilannekuva/
89+
SENTRY_ENVIRONMENT=staging
90+
extra-args: |
91+
--ulimit nofile=4096:4096
92+
93+
- name: Push to quay.io
94+
uses: redhat-actions/push-to-registry@v2
95+
with:
96+
image: ${{ steps.build-image.outputs.image }}
97+
tags: ${{ steps.build-image.outputs.tags }}
98+
registry: quay.io/toska
99+
username: toska+github
100+
password: ${{ secrets.QUAY_IO_TOKEN }}

.github/workflows/production.yml

100644100755
File mode changed.

.github/workflows/staging.yml

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: docker compose up -d
4848

4949
- name: seed db
50-
run: docker exec lomake_dev bash -c "node index.js seed"
50+
run: docker exec lomake_dev bash -c "node server/index.js seed"
5151

5252
- name: Run cypress tests with retry
5353
uses: nick-fields/retry@v3

.gitignore

100644100755
File mode changed.

.nvmrc

100644100755
File mode changed.

.prettierrc

100644100755
File mode changed.

0 commit comments

Comments
 (0)