Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3

- name: Echo confirmation
run: echo "Tests run"
10 changes: 5 additions & 5 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3

- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
uses: redhat-actions/buildah-build@v2.6.2
with:
image: norppa
tags: production ${{ github.sha }}
Expand All @@ -35,7 +35,7 @@ jobs:
--ulimit nofile=4096:4096

- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
uses: redhat-actions/push-to-registry@v2.7.1
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
Expand All @@ -48,7 +48,7 @@ jobs:
needs: build-and-push

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3

- name: Pull image and create a container
run: docker create --name palaute quay.io/toska/norppa:production
Expand All @@ -57,7 +57,7 @@ jobs:
run: docker cp palaute:/opt/app-root/src/build ./build

- name: Create Sentry release
uses: getsentry/action-release@v3
uses: getsentry/action-release@v3.7.0
env:
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
needs: test

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3

- name: Build image
id: build-image
uses: redhat-actions/buildah-build@v2
uses: redhat-actions/buildah-build@v2.6.2
with:
image: norppa
tags: staging ${{ github.sha }}
Expand All @@ -37,7 +37,7 @@ jobs:
--ulimit nofile=4096:4096

- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
uses: redhat-actions/push-to-registry@v2.7.1
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3
- name: Build project for linting
run: npm ci
- name: Run eslint and ts checks
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3
- name: Build project for translations
run: npm ci
- name: Analyse translations
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v6.0.3

- name: npm ci
run: npm ci --no-audit --no-fund
Expand All @@ -56,28 +56,28 @@ jobs:
run: npx cypress install

- name: Login to toska docker registry
uses: docker/login-action@v3
uses: docker/login-action@v3.7.0
with:
registry: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi
username: ${{ secrets.TOSKAREGISTRY_USERNAME }}
password: ${{ secrets.TOSKAREGISTRY_PASSWORD }}

- name: Start the application
uses: nick-fields/retry@v3
uses: nick-fields/retry@v3.0.2
with:
timeout_minutes: 5
max_attempts: 3
command: docker compose -f docker-compose.ci.yml up -d

- name: Run cypress tests with retry
uses: nick-fields/retry@v3
uses: nick-fields/retry@v3.0.2
with:
timeout_minutes: 6
max_attempts: 2
command: ./node_modules/.bin/cypress run -C cypress.config.ci.js --headless --browser chrome --spec "cypress/integration/${{ matrix.spec }}"

- name: Upload video
uses: actions/upload-artifact@v6
uses: actions/upload-artifact@v6.0.0
if: failure()
with:
path: /home/runner/work/palaute/palaute/cypress/videos/*
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@
"winston-loki": "6.1.3",
"xlsx": "0.18.5",
"yup": "1.7.1",
"zod": "^3.25.76"
"zod": "3.25.76"
},
"devDependencies": {
"@babel/eslint-parser": "7.28.6",
"@babel/preset-react": "7.28.5",
"@babel/preset-typescript": "7.28.5",
"@types/compression": "1.8.1",
"@types/config": "^3.3.5",
"@types/config": "3.3.5",
"@types/jsonwebtoken": "9.0.10",
"@types/lodash": "4.17.23",
"@types/jest": "30.0.0",
Expand Down