This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Added - E2E tests (using [postman](https://www.postman.com/)) ### Fixed - Wrong HTTP `Content-Type` header value for docker environment
- Loading branch information
1 parent
6d4bbb2
commit c7fa3ec
Showing
15 changed files
with
611 additions
and
7 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,43 @@ | ||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions | ||
name: Run Newman | ||
description: Newman is CLI collection runner for Postman | ||
|
||
inputs: | ||
collection: | ||
description: 'Path to the file with postman collection' | ||
required: true | ||
default: './test/postman/default.postman_collection.json' | ||
environment: | ||
description: 'Path to the file with postman environment' | ||
required: true | ||
default: './test/postman/default.postman_environment.json' | ||
baseurl: | ||
description: 'Application base url' | ||
required: true | ||
default: 'http://127.0.0.1:8080' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Pull newman docker image | ||
shell: bash | ||
run: | | ||
if [[ "$(docker images -q postman/newman:5.2-alpine 2> /dev/null)" == "" ]]; then | ||
docker pull postman/newman:5.2-alpine 1>/dev/null | ||
fi | ||
# Image page: <https://hub.docker.com/r/postman/newman>, | ||
# CLI options: <https://www.npmjs.com/package/newman#command-line-options> | ||
- name: Run Newman | ||
shell: bash | ||
run: | | ||
docker run \ | ||
--rm \ | ||
--tty \ | ||
--net host \ | ||
--volume "$(pwd):/rootfs:ro" \ | ||
--workdir "/rootfs" \ | ||
postman/newman:5.2-alpine run "${{ inputs.collection }}" \ | ||
--environment "${{ inputs.environment }}" \ | ||
--env-var "base_url=${{ inputs.baseurl }}" \ | ||
--color on |
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,39 @@ | ||
documentation: | ||
- '**/*.md' | ||
- '**/*.MD' | ||
- '!CHANGELOG.md' | ||
|
||
.github: | ||
- '.github/**/*' | ||
|
||
CI: | ||
- '.github/workflows/**/*' | ||
- '.github/actions/**/*' | ||
|
||
tests: | ||
- '**/*.spec.js' | ||
- '**/*.spec.ts' | ||
- '**/*.test.js' | ||
- '**/*.test.ts' | ||
- '**/*_test.go' | ||
- '**/testdata/**/*' | ||
- 'test/**/*' | ||
- '.golangci.yml' | ||
- 'codecov.yml' | ||
|
||
frontend: | ||
- 'web/**/*' | ||
|
||
hosts: | ||
- '.hosts/**/*' | ||
|
||
docker: | ||
- 'Dockerfile' | ||
- 'docker/**/*' | ||
- '.dockerignore' | ||
|
||
dev: | ||
- 'Makefile' | ||
- 'docker-compose.yml' | ||
- '.gitignore' | ||
- '.editorconfig' |
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 @@ | ||
name: "Pull Request Labeler" | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/labeler@v3 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
sync-labels: true |
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
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
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
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
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
Oops, something went wrong.