-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action: build and test on Linux GH runners #1995
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a753f84
action: build and test on Linux GH runners
v1v 7745a33
Merge branch 'main' into feature/github-action-linux
v1v 81179c5
Merge branch 'main' into feature/github-action-linux
Mpdreamz 26ef7e1
Merge branch 'main' into feature/github-action-linux
Mpdreamz c26c4c8
Merge branch 'main' into feature/github-action-linux
v1v f1fcaf0
Merge branch 'main' into feature/github-action-linux
Mpdreamz 4699347
bump rustup
Mpdreamz e0eee12
ensure cargo make gets installed first
Mpdreamz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,123 @@ | ||
name: test-linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '*.md' | ||
- '*.asciidoc' | ||
- 'docs/**' | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '*.asciidoc' | ||
- 'docs/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Rustup | ||
run: rustup default 1.67.1 | ||
|
||
- name: Cargo make | ||
run: cargo install --force cargo-make | ||
|
||
- name: Build | ||
run: .ci/linux/build.sh | ||
|
||
- name: Package | ||
run: .ci/linux/release.sh true | ||
|
||
- name: Build profiler | ||
run: ./build.sh profiler-zip | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Test & coverage | ||
run: .ci/linux/test.sh | ||
|
||
- name: Store test results | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: test/**/junit-*.xml | ||
|
||
startup-hook-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build agent-zip | ||
run: ./build.sh agent-zip | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
3.1.100 | ||
5.0.100 | ||
6.0.100 | ||
7.0.100 | ||
- name: Startup Hook Tests | ||
run: .ci/linux/test-startuphooks.sh | ||
|
||
- name: Store test results | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: test/**/junit-*.xml | ||
|
||
profiler-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Rustup | ||
run: rustup default 1.67.1 | ||
|
||
- name: Cargo make | ||
run: cargo install --force cargo-make | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
3.1.100 | ||
5.0.100 | ||
6.0.100 | ||
7.0.100 | ||
- name: Build profiler | ||
run: ./build.sh profiler-zip | ||
|
||
- name: Profiler Tests | ||
run: .ci/linux/test-profiler.sh | ||
|
||
- name: Create Docker Image | ||
run: .ci/linux/build_docker.sh | ||
|
||
- name: Store test results | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: test/**/junit-*.xml |
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,20 @@ | ||
--- | ||
## Workflow to process the JUnit test results and add a report to the checks. | ||
name: test-reporter | ||
on: | ||
workflow_run: | ||
workflows: | ||
- test-linux | ||
types: | ||
- completed | ||
|
||
jobs: | ||
report: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: elastic/apm-pipeline-library/.github/actions/test-report@current | ||
with: | ||
artifact: test-results # artifact name | ||
name: JUnit Tests # Name of the check run which will be created | ||
path: "test/**/junit-*.xml" # Path to test results (inside artifact .zip) | ||
reporter: java-junit # Format of test results |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking for visibility: elastic/apm-pipeline-library#2063 these can quite noisy but hit an issue with reporting only failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2019 is the one testing that particular test reporter action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although it won't test it since the action needs exist in the default main branch. I'll try with the ecs-logging-net repo