Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: introduce continuous smoke testing (#1611)
- Loading branch information
1 parent
0ab9332
commit 3983e27
Showing
1 changed file
with
34 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,34 @@ | ||
name: Smoke Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
tags: | ||
- '**' | ||
schedule: # nightly | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: {} #manually | ||
|
||
jobs: | ||
go-get-u: | ||
# Run go get -u to upgrade dd-trace-go dependencies to their | ||
# latest minor version and see if dd-trace-go still compiles. | ||
# Related to issue https://github.com/DataDog/dd-trace-go/issues/1607 | ||
name: 'dd-trace-go still works after go get -u' | ||
runs-on: ubuntu-latest | ||
env: | ||
PACKAGES: ./internal/... ./ddtrace/... ./profiler/... ./appsec/... | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
cache: true | ||
- name: go get -u | ||
run: go get -u $PACKAGES | ||
- name: Compile dd-trace-go | ||
run: go build -tags appsec $PACKAGES | ||
- name: Test dd-trace-go | ||
run: go test -tags appsec $PACKAGES |