-
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.
test(e2e): add CI workflow for e2e tests
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Checks | ||
|
||
env: | ||
NODE_VERSION: 18.16.1 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
cypress-run: | ||
name: End-to-end tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'npm' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: geonetwork/geonetwork-ui | ||
path: './geonetwork-ui' | ||
- name: Build the gn-ui backend | ||
run: sudo docker-compose -f geonetwork-ui/support-services/docker-compose.yml up -d init | ||
|
||
- name: Install dependencies | ||
run: npm ci -f | ||
|
||
- name: Run tests | ||
run: npx nx run-many --target=e2e |