-
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.
chore(ci): fix running e2e backend tests during CI
chore(ci): test chore(ci): fix credentials chore(ci): run background idomitc way chore(ci): specify container chore(ci): map to host chore(ci): setup users chore(ci): add & use wait-on chore(ci): run wait on sequentially chore(ci): run wait on sin server step chore(env): fix in ci chore(env): simplify
- Loading branch information
Showing
3 changed files
with
123 additions
and
24 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 |
---|---|---|
|
@@ -8,10 +8,27 @@ on: | |
|
||
env: | ||
BASE_BRANCH: dev | ||
POSTGRES_PASSWORD: postgres | ||
ADMIN_EMAIL: [email protected] | ||
ADMIN_PASSWORD: admin | ||
DUMMY_EDITOR_EMAIL: [email protected] | ||
DUMMY_EDITOR_PASSWORD: editor | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -26,5 +43,8 @@ jobs: | |
- run: npx nx format:check --base=$BASE_BRANCH | ||
- run: npx nx affected --target=lint --parallel=3 --base=origin/$BASE_BRANCH | ||
- run: npx nx affected --target=test --parallel=3 --ci --code-coverage --base=origin/$BASE_BRANCH | ||
- run: npx nx affected --target=e2e --parallel=2 --ci --code-coverage --base=origin/$BASE_BRANCH | ||
- run: | | ||
npx nx serve backend & | ||
npx wait-on http://localhost:3333/api | ||
- run: npx nx e2e backend-e2e | ||
- run: npx nx affected --target=build --parallel=3 --base=origin/$BASE_BRANCH |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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