-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into remove-obsolete-image-names
- Loading branch information
Showing
128 changed files
with
33,194 additions
and
3,941 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
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: | ||
- 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 | ||
docker compose -f docker-compose.test.yml up -d frontend | ||
cd ../presenter | ||
cp .env.dist .env | ||
docker compose -f docker-compose.test.yml up -d presenter | ||
sleep 4m | ||
- 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: boilerplate-e2e-test-report-pr-${{ steps.pr-number.outputs.pr }} | ||
path: /home/runner/work/dreammall.earth/dreammall.earth/tests/cypress/reports/dreammall-e2e_html_report |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: e2e:test:build test docs | ||
|
||
on: push | ||
|
||
jobs: | ||
files-changed: | ||
name: Detect File Changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.e2e-docs }} | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Check for e2e docs file changes | ||
uses: dorny/paths-filter@v3.0.2 | ||
id: changes | ||
with: | ||
token: ${{ github.token }} | ||
filters: .github/file-filters.yml | ||
list-files: shell | ||
|
||
build: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Build Docs - E2E Testing | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./tests | ||
steps: | ||
- name: Set Node version | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '>=21' | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@master | ||
|
||
- name: E2E Testing | Build Docs | ||
run: npm install && npm run docs:build | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: e2e:test:lint code with defined linters | ||
|
||
on: push | ||
|
||
jobs: | ||
files-changed: | ||
name: Detect File Changes | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.e2e-all }} | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Check for frontend file changes | ||
uses: dorny/paths-filter@v3.0.2 | ||
id: changes | ||
with: | ||
token: ${{ github.token }} | ||
filters: .github/file-filters.yml | ||
list-files: shell | ||
|
||
lint: | ||
if: needs.files-changed.outputs.changes == 'true' | ||
name: Lint - E2E files | ||
needs: files-changed | ||
runs-on: ubuntu-latest | ||
env: | ||
WORKING_DIRECTORY: ./tests | ||
steps: | ||
- name: Set Node version | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '>=21' | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@master | ||
|
||
- name: E2E files | Lint | ||
run: npm install && npm run test:lint | ||
working-directory: ${{env.WORKING_DIRECTORY}} |
Oops, something went wrong.