|
35 | 35 | # A workflow run is made up of one or more jobs that can run sequentially or in parallel |
36 | 36 | jobs: |
37 | 37 | main: |
38 | | - name: Test, Analyze Code & Report |
| 38 | + name: "Test, Analyze Code & Report" |
39 | 39 | runs-on: ubuntu-latest |
40 | 40 | permissions: |
41 | 41 | contents: write |
@@ -79,34 +79,18 @@ jobs: |
79 | 79 | format: markdown |
80 | 80 | output: both |
81 | 81 | thresholds: "${{ inputs.low_cov }} ${{ inputs.high_cov }}" |
82 | | -# - name: "Upload Badges" |
83 | | -# if: ${{ !cancelled() && github.event_name != 'pull_request' }} |
84 | | -# uses: exuanbo/actions-deploy-gist@v1 |
85 | | -# with: |
86 | | -# token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }} |
87 | | -# gist_id: 82b48469578014fc69d5aa64ef0a443f |
88 | | -# gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.svg |
89 | | -# file_path: dist/coverage-badge.svg |
90 | | -# - name: "Upload Reports" |
91 | | -# if: ${{ !cancelled() && github.event_name != 'pull_request' }} |
92 | | -# uses: exuanbo/actions-deploy-gist@v1 |
93 | | -# with: |
94 | | -# token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }} |
95 | | -# gist_id: 82b48469578014fc69d5aa64ef0a443f |
96 | | -# gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.md |
97 | | -# file_path: code-coverage-results.md |
98 | 82 | - name: "Collect Reports" |
99 | 83 | if: ${{ !cancelled() && github.event_name != 'pull_request' }} |
100 | 84 | run: | |
101 | | - cp code-coverage-results.md dist/ |
102 | | - - name: Upload Badges and Reports |
| 85 | + cp -rfp code-coverage-results.md dist/code-coverage-results.md |
| 86 | + - name: "Upload Badges and Reports" |
103 | 87 | if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }} |
104 | 88 | uses: peaceiris/actions-gh-pages@v4 |
105 | 89 | with: |
106 | 90 | github_token: ${{ secrets.GITHUB_TOKEN }} |
107 | 91 | publish_branch: gh-pages |
108 | 92 | publish_dir: dist |
109 | | - destination_dir: pages |
| 93 | + destination_dir: reports/${{ github.ref_name }} |
110 | 94 | exclude_assets: '.github,coverage.out,tests.json' |
111 | 95 | enable_jekyll: true |
112 | 96 | keep_files: true |
|
0 commit comments