Skip to content

Bump vue-tsc from 1.8.27 to 2.0.22 in /frontend #681

Bump vue-tsc from 1.8.27 to 2.0.22 in /frontend

Bump vue-tsc from 1.8.27 to 2.0.22 in /frontend #681

Workflow file for this run

name: e2e:test:all test the application end to end
on: [push,pull_request_target]
jobs:
e2e-tests:
name: Run all E2E tests
runs-on: ubuntu-latest
steps:
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: 21
- name: Checkout
uses: actions/checkout@master
- name: E2E | Boot up test system
run: |
cd authentik/
./database.unpack.sh
docker compose up -d
cd ../frontend
cp .env.dist .env
npm install
npm run prod &
cd ../presenter
cp .env.dist .env
export PORT=3001
npm install
npm run prod &
- name: Install cucumber-json-formatter
run: |
wget --no-verbose -O /opt/cucumber-json-formatter "https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-386"
chmod +x /opt/cucumber-json-formatter
sudo ln -fs /opt/cucumber-json-formatter /usr/bin/cucumber-json-formatter
- name: E2E | Run all tests
id: e2e-run
uses: cypress-io/github-action@v6
with:
working-directory: tests
- name: E2E | if tests failed, compile html report
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
run: |
cd cypress/
npx tsx create-cucumber-html-report.ts
working-directory: tests
- name: Get PR number
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
uses: jwalton/gh-find-current-pr@master
id: pr-number
- name: E2E | if tests failed, upload report
if: ${{ failure() && steps.e2e-run.conclusion == 'failure' }}
uses: actions/upload-artifact@v4
with:
name: dreammall-e2e-test-report-pr-${{ steps.pr-number.outputs.pr }}
path: /home/runner/work/dreammall.earth/dreammall.earth/tests/cypress/reports/dreammall-e2e_html_report