Bump prettier from 2.8.8 to 3.3.2 #1750
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |