-
Notifications
You must be signed in to change notification settings - Fork 438
36 lines (34 loc) · 959 Bytes
/
smoke-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Smoke Tests
on:
push:
branches:
- main
- release-v*
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: "stable"
cache: true
- name: go get -u
run: |
go get -u $PACKAGES
go mod tidy
- name: Compile dd-trace-go
run: go build -tags appsec $PACKAGES
- name: Test dd-trace-go
run: go test -tags appsec $PACKAGES