Skip to content

Bump the typescript group across 1 directory with 3 updates #1253

Bump the typescript group across 1 directory with 3 updates

Bump the typescript group across 1 directory with 3 updates #1253

Workflow file for this run

name: e2e:test:all test the application end to end
on: push
jobs:
e2e-tests:
name: Run all E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v4
with:
node-version-file: './.tool-versions'
- name: E2E | Boot up test system
run: |
cd authentik/
rm -rf database
./database.unpack.sh
docker compose up -d
cd ../
docker compose up -d database
cd backend
cp .env.dist .env
ln -s src/auth/public.pem public.pem
npm install
npm run db:reset
npm run build
npm run start &
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