-
Notifications
You must be signed in to change notification settings - Fork 3
Fix bug 243 #249
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
Fix bug 243 #249
Changes from all commits
517c321
8f9dbc3
bf6d1e8
e2528d0
80f7e45
09faed0
fe52c42
6d65645
b49d9c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,15 @@ on: | |
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| event_file: | ||
| name: "Event File" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Upload | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Event File | ||
| path: ${{ github.event_path }} | ||
|
Comment on lines
+12
to
+20
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The point of doing this is so that you can run EnricoMi/publish-unit-test-result-action from a separate job that is invoked by I don't see that anywhere in this PR. |
||
| check_nitypes: | ||
| name: Check nitypes | ||
| uses: ./.github/workflows/check_nitypes.yml | ||
|
|
@@ -30,7 +39,7 @@ jobs: | |
| uses: ./.github/workflows/run_unit_tests_oldest_deps.yml | ||
| needs: [checks_succeeded] | ||
| report_test_results: | ||
| name: Report test results | ||
| name: Test Results | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ruleset lists Test Results as a required check in order to ensure that the tests pass. You can't see it because are not a repo admin, but it's documented here: https://dev.azure.com/ni/DevCentral/_wiki/wikis/AppCentral.wiki/139879/GitHub-Branch-Protection-Rules-and-Rulesets You created two other checks with this name, but I don't think either one guarantees that the tests pass. |
||
| uses: ./.github/workflows/report_test_results.yml | ||
| needs: [run_unit_tests, run_unit_tests_oldest_deps] | ||
| if: always() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,8 @@ on: | |
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| report_test_results: | ||
| name: Report test results | ||
| test-results: | ||
| name: Test Results | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
@@ -24,7 +24,7 @@ jobs: | |
| - name: List downloaded files | ||
| run: ls -lR | ||
| - name: Publish test results | ||
| uses: EnricoMi/publish-unit-test-result-action@34d7c956a59aed1bfebf31df77b8de55db9bbaaf # v2.21.0 | ||
| uses: EnricoMi/publish-unit-test-result-action@v2 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is less secure and there is no reason to change it. |
||
| with: | ||
| files: "test_results/**/*.xml" | ||
| if: always() | ||
| if: (!cancelled()) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: Test Results | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main, 'releases/**'] | ||
|
|
||
| jobs: | ||
| test-results: | ||
| name: Test Results | ||
| runs-on: ubuntu-latest | ||
| if: always() | ||
| steps: | ||
| - name: Set Status | ||
| run: echo "Test Results status check satisfied" |
Uh oh!
There was an error while loading. Please reload this page.
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.
BTW, everything you added uses different naming style than the rest of the workflows
job & step names: Sentence case
job & step ids: snake_case
action/workflow parameters: kebab-case
artifacts: snake_case