@@ -25,75 +25,75 @@ jobs:
2525 - name : Analyse translations
2626 run : npm run translations -- --lang fi,en
2727
28- tests :
29- strategy :
30- fail-fast : false
31- matrix :
32- spec :
33- [
34- comparison,
35- degreeReform,
36- form,
37- formNotifications,
38- happypath,
39- IAMpermissions,
40- management,
41- misc,
42- ospa,
43- permissions,
44- report,
45- sidebar,
46- yearselector,
47- evaluation,
48- metaevaluation,
49- trackingpage,
50- facultymonitoringoverview,
51- textfield,
52- overview,
53- ]
54- name : Run tests
55- runs-on : ubuntu-latest
56- steps :
57- - name : Checkout
58- uses : actions/checkout@v4
59- - uses : actions/setup-node@v4
60- with :
61- node-version : 20
62- cache : npm
63-
64- - name : npm ci
65- run : npm ci --no-audit --no-fund
66-
67- - name : docker compose up -d
68- run : docker compose up -d
69-
70- - name : seed db
71- run : docker exec lomake_dev bash -c "npm run seed"
72-
73- - name : Run cypress tests with retry
74- uses : nick-fields/retry@v3
75- with :
76- timeout_minutes : 6
77- max_attempts : 2
78- command : ./node_modules/.bin/cypress run --headless --browser chrome --spec "cypress/integration/${{ matrix.spec }}.spec.js"
79-
80- - uses : actions/upload-artifact@v4
81- if : failure()
82- with :
83- name : Cypress videos
84- path : /home/runner/work/lomake/lomake/cypress/videos
85-
86- - uses : actions/upload-artifact@v4
87- if : failure()
88- with :
89- name : Cypress screenshots
90- path : /home/runner/work/lomake/lomake/cypress/screenshots
28+ # tests:
29+ # strategy:
30+ # fail-fast: false
31+ # matrix:
32+ # spec:
33+ # [
34+ # comparison,
35+ # degreeReform,
36+ # form,
37+ # formNotifications,
38+ # happypath,
39+ # IAMpermissions,
40+ # management,
41+ # misc,
42+ # ospa,
43+ # permissions,
44+ # report,
45+ # sidebar,
46+ # yearselector,
47+ # evaluation,
48+ # metaevaluation,
49+ # trackingpage,
50+ # facultymonitoringoverview,
51+ # textfield,
52+ # overview,
53+ # ]
54+ # name: Run tests
55+ # runs-on: ubuntu-latest
56+ # steps:
57+ # - name: Checkout
58+ # uses: actions/checkout@v4
59+ # - uses: actions/setup-node@v4
60+ # with:
61+ # node-version: 20
62+ # cache: npm
63+
64+ # - name: npm ci
65+ # run: npm ci --no-audit --no-fund
66+
67+ # - name: docker compose up -d
68+ # run: docker compose up -d
69+
70+ # - name: seed db
71+ # run: docker exec lomake_dev bash -c "npm run seed"
72+
73+ # - name: Run cypress tests with retry
74+ # uses: nick-fields/retry@v3
75+ # with:
76+ # timeout_minutes: 6
77+ # max_attempts: 2
78+ # command: ./node_modules/.bin/cypress run --headless --browser chrome --spec "cypress/integration/${{ matrix.spec }}.spec.js"
79+
80+ # - uses: actions/upload-artifact@v4
81+ # if: failure()
82+ # with:
83+ # name: Cypress videos
84+ # path: /home/runner/work/lomake/lomake/cypress/videos
85+
86+ # - uses: actions/upload-artifact@v4
87+ # if: failure()
88+ # with:
89+ # name: Cypress screenshots
90+ # path: /home/runner/work/lomake/lomake/cypress/screenshots
9191
9292
9393 build :
9494 name : ' Build and publish staging image'
95- needs :
96- - tests
95+ # needs:
96+ # - tests
9797 runs-on : ubuntu-latest
9898
9999 steps :
@@ -112,12 +112,11 @@ jobs:
112112 SENTRY_ENVIRONMENT=staging
113113 extra-args : |
114114 --ulimit nofile=4096:4096
115-
116- # - name: Push to quay.io
117- # uses: redhat-actions/push-to-registry@v2
118- # with:
119- # image: ${{ steps.build-image.outputs.image }}
120- # tags: ${{ steps.build-image.outputs.tags }}
121- # registry: quay.io/toska
122- # username: toska+github
123- # password: ${{ secrets.QUAY_IO_TOKEN }}
115+ - name : Push to quay.io
116+ uses : redhat-actions/push-to-registry@v2
117+ with :
118+ image : ${{ steps.build-image.outputs.image }}
119+ tags : ${{ steps.build-image.outputs.tags }}
120+ registry : quay.io/toska
121+ username : toska+github
122+ password : ${{ secrets.QUAY_IO_TOKEN }}
0 commit comments