mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: Dev UI E2E tests
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'ui/**'
|
|
- '.github/workflows/ui-e2e.yaml'
|
|
|
|
jobs:
|
|
cypress-run:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Build odo
|
|
run: make bin
|
|
|
|
- name: Set odo in system path
|
|
run: |
|
|
mkdir -p "$HOME/.local/bin/"
|
|
mv ./odo "$HOME/.local/bin/odo"
|
|
chmod +x "$HOME/.local/bin/odo"
|
|
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v6
|
|
env:
|
|
ODO_EXPERIMENTAL_MODE: "true"
|
|
ODO_TRACKING_CONSENT: "no"
|
|
with:
|
|
working-directory: ui
|
|
# Run odo against the UI itself
|
|
start: |
|
|
odo api-server --port 20000
|
|
npm start
|
|
wait-on: 'http://localhost:20000, http://localhost:4200'
|
|
wait-on-timeout: 180
|
|
|
|
# after the test run completes, store videos and any screenshots only upon a failure
|
|
- uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: cypress-artifacts
|
|
path: |
|
|
ui/cypress/screenshots/
|
|
ui/cypress/videos/
|
|
if-no-files-found: warn
|
|
retention-days: 7
|