-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/create test job #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
c3f2a64
add initial example workflow
zoe-marie f2a70b0
update testing steps to yarn test
zoe-marie 545a87d
add checkout repo
zoe-marie dad37a7
add setup node js
zoe-marie 59dc37e
add yarn install
zoe-marie 253b4e8
rename test
zoe-marie be8bf38
change test text to correct value
zoe-marie e22c711
add end to end tests
zoe-marie 53ccce0
add playwright url for test env
zoe-marie a1a282e
add install playwright browser
zoe-marie 582805c
fix: typo in localhost
zoe-marie 580b128
test: add some logging
zoe-marie c8a58c3
test: ci env variable
zoe-marie 69c84b7
fix: make CI env variable empty
zoe-marie 151f57b
fix: unset CI env var, set by default in GithHub Actions
zoe-marie f947b08
try without playwright browser
zoe-marie 14881e0
add pre commit tests
zoe-marie 2a66977
this is a test commit
zoe-marie 920f3dd
change test comand
zoe-marie c7117b7
change when test runs
zoe-marie 9f6e54b
add initial example workflow
zoe-marie 7f953ba
update testing steps to yarn test
zoe-marie 32bdb74
add checkout repo
zoe-marie fb86ce6
add setup node js
zoe-marie 5c20ad9
add yarn install
zoe-marie ab24e9e
rename test
zoe-marie 4db2965
change test text to correct value
zoe-marie 60709c5
add end to end tests
zoe-marie 85c5942
add playwright url for test env
zoe-marie 59668f5
add install playwright browser
zoe-marie 32d3d09
fix: typo in localhost
zoe-marie fb495c7
test: add some logging
zoe-marie 515093f
test: ci env variable
zoe-marie 158228d
fix: make CI env variable empty
zoe-marie 571414c
fix: unset CI env var, set by default in GithHub Actions
zoe-marie 0461793
try without playwright browser
zoe-marie de3f34e
add pre commit tests
zoe-marie 60371e7
this is a test commit
zoe-marie 9cb53d6
change test comand
zoe-marie 94f399b
change when test runs
zoe-marie 1eebba2
Merge branch 'feature/create-test-job' of https://github.com/codeuniv…
zoe-marie 18ce80c
change backstage url port in e2e test
zoe-marie c21039a
Update test command in run-tests.yml
zoe-marie 1263581
add testing section to readme
zoe-marie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,38 @@ | ||
| name: Test and E2E tests | ||
| run-name: Run tests and E2E tests | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| run-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Use Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '20' | ||
| - run: yarn install | ||
| - run: yarn backstage-cli repo test | ||
|
|
||
| run-e2e-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 #chekcout te repository | ||
| - name: Use Node.js | ||
| uses: actions/setup-node@v3 #setup node version 20 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Install dependencies #install dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Run E2E tests | ||
| env: | ||
| PLAYWRIGHT_URL: http://localhost:3000 # set the URL of the app to test with playwright | ||
| CI: # unset CI because it is set by default in Github actions | ||
| run: | | ||
| yarn test:e2e |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.