-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github: add system tests in CI (#1059)
System tests is a functional test suite that perform black box testing to ensure the good behavior of feature across all components. As now, the coverage is mainly on AppSec, but it can check all features, as long as they have a visible effect (stdout, communication with agent ...). Co-authored-by: Gabriel Aszalos <[email protected]> Co-authored-by: Julio Guerra <[email protected]>
- Loading branch information
1 parent
c48db64
commit 11c835c
Showing
4 changed files
with
71 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,52 @@ | ||
name: System Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '00 04 * * 2-6' | ||
|
||
jobs: | ||
system-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- library: golang | ||
weblog-variant: net-http | ||
- library: golang | ||
weblog-variant: gorilla | ||
fail-fast: false | ||
env: | ||
TEST_LIBRARY: golang | ||
WEBLOG_VARIANT: ${{ matrix.weblog-variant }} | ||
DD_API_KEY: ${{ secrets.DD_API_KEY }} | ||
steps: | ||
- name: Checkout system tests | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'DataDog/system-tests' | ||
|
||
- name: Checkout dd-trace-go | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'binaries/dd-trace-go' | ||
|
||
- name: Build | ||
run: ./build.sh | ||
|
||
- name: Run | ||
run: ./run.sh | ||
|
||
- name: Compress artifact | ||
if: ${{ always() }} | ||
run: tar -czvf artifact.tar.gz $(ls | grep logs) | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: logs_${{ matrix.weblog-variant }} | ||
path: artifact.tar.gz |
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