forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: bump Angular to 15 (eclipse-edc#115)
* build: bump Angular to 15 * PR remark * cleanup workflow file * Add first e2e test * PR remark
- Loading branch information
Showing
16 changed files
with
6,559 additions
and
4,712 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: E2E | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: | | ||
docker compose up -d | ||
docker compose logs -f > logs & | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
|
||
- run: | | ||
npm install | ||
npm run cy | ||
- name: Print docker logs | ||
if: failure() | ||
run: | | ||
cat logs |
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,12 @@ | ||
import { defineConfig } from 'cypress' | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: 'http://localhost:18080', | ||
supportFile: false | ||
}, | ||
env: { | ||
consumerUrl: 'http//localhost:18080', | ||
providerUrl: 'http//localhost:28080', | ||
}, | ||
}) |
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,10 @@ | ||
describe('end-to-end', () => { | ||
it('should be accessible', () => { | ||
const consumerUrl = Cypress.env('consumerUrl') | ||
const providerUrl = Cypress.env('providerUrl') | ||
|
||
cy.visit(consumerUrl); | ||
|
||
cy.visit(providerUrl); | ||
}) | ||
}) |
Oops, something went wrong.