forked from elastic/apm-server
-
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.
ci: run with tests in GitHub Actions
Run linting, unit tests, and system tests with GitHub Actions. Remove these from the Jenkinsfile. We also remove microbenchmarks and hey-apm stages from Jenkins, but without replacement. We are only making critical bug fixes to 7.17, so these stages are not necessary; we can run benchmarks locally or on a dedicated machine as needed. Use LF (not CRLF) on Windows for testdata files (*.ndjson, *.json, *.map).
- Loading branch information
Showing
12 changed files
with
63 additions
and
545 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
CHANGELOG.asciidoc merge=union | ||
internal/otel_collector linguist-generated=true | ||
**.ndjson text eol=lf | ||
**.json text eol=lf | ||
**.map text eol=lf |
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 |
---|---|---|
@@ -1,18 +1,60 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- 7.1* | ||
pull_request: | ||
|
||
# limit the access of the generated GITHUB_TOKEN | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
system-test: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No tests required to run"' | ||
lint: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: .go-version | ||
cache: true | ||
cache-dependency-path: | | ||
go.sum | ||
tools/go.sum | ||
systemtest/go.sum | ||
- run: make check-full | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
os: ['macos-latest', 'windows-latest', 'ubuntu-latest'] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: .go-version | ||
cache: true | ||
- run: go test -v ./... | ||
|
||
python-system-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: .go-version | ||
cache: true | ||
- run: make update apm-server docker-system-tests | ||
|
||
go-system-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No lint required to run"' | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: .go-version | ||
cache: true | ||
- run: make apm-server | ||
- run: cd systemtest && go test -v -timeout=20m ./... |
This file was deleted.
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
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