Skip to content

Bump @types/node from 20.14.9 to 22.4.1 #1765

Bump @types/node from 20.14.9 to 22.4.1

Bump @types/node from 20.14.9 to 22.4.1 #1765

Workflow file for this run

name: End-to-end tests
on: [pull_request]
jobs:
cypress-e2e-headless:
name: Cypress e2e
runs-on: ubuntu-latest
strategy:
matrix:
node: ["20"]
browser: ["firefox", "chrome"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
- name: Build Frontend
run: |
npx --quiet pinst --disable
pnpm install --production
pnpm run build --production
- name: Set up branch
run: |
if [[ "${{github.base_ref}}" == "master" ]]; then
echo "VERSION=master" >> $GITHUB_ENV
else
echo "VERSION=develop" >> $GITHUB_ENV
fi
- name: Clone backend
uses: actions/checkout@v4
with:
repository: 'CSCfi/metadata-submitter'
path: metadata-submitter
ref: ${{ env.VERSION }}
- name: Set up branch
run: |
mkdir -p metadata-submitter/metadata_backend/frontend
cp -r build/* metadata-submitter/metadata_backend/frontend/
docker-compose -f metadata-submitter/docker-compose.yml --env-file metadata-submitter/.env.example up -d --build
sleep 30
- uses: cypress-io/github-action@v6
with:
browser: ${{ matrix.browser }}
env: port=5430
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
retention-days: 5
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: cypress/videos
retention-days: 5