|
9 | 9 | permissions: |
10 | 10 | contents: read |
11 | 11 |
|
12 | | -env: |
13 | | - # `github.ref` points to the *merge commit* when running tests on a pull request, which will be a commit |
14 | | - # that doesn't exists in our code base. Since this workflow triggers from a PR, we use the HEAD SHA instead. |
15 | | - # |
16 | | - # NOTE: These both used to be used by Code Climate (cc-test-reporter), superseded by qlty.sh |
17 | | - GIT_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} |
18 | | - GIT_BRANCH: ${{ github.head_ref }} |
19 | | - |
20 | 12 | jobs: |
21 | 13 | matrix-test: |
22 | 14 | runs-on: ubuntu-latest |
|
29 | 21 | - "3.3" |
30 | 22 | - "3.4" |
31 | 23 | - "4.0" |
32 | | - - "jruby-9.3.15" |
| 24 | + - "jruby-9.4" |
33 | 25 | - "jruby" |
34 | 26 | include: # HEAD-versions |
35 | 27 | - ruby-version: "head" |
|
72 | 64 | path: coverage |
73 | 65 | retention-days: 1 |
74 | 66 |
|
75 | | - coverage-upload: |
76 | | - permissions: |
77 | | - id-token: write # Required for OIDC |
78 | | - needs: test |
79 | | - runs-on: ubuntu-latest |
80 | | - steps: |
81 | | - - uses: actions/checkout@v4 |
82 | | - - name: Download coverage results |
83 | | - uses: actions/download-artifact@v4 |
84 | | - with: |
85 | | - name: coverage-results |
86 | | - path: coverage |
87 | | - - name: Upload code coverage to qlty.sh |
88 | | - uses: qltysh/qlty-action/coverage@v2 |
89 | | - with: |
90 | | - oidc: true |
91 | | - format: simplecov |
92 | | - files: coverage/.resultset.json |
93 | | - |
94 | | - coverage-check: |
95 | | - permissions: |
96 | | - contents: read |
97 | | - checks: write |
98 | | - needs: test |
99 | | - runs-on: ubuntu-latest |
100 | | - steps: |
101 | | - - uses: actions/checkout@v4 |
102 | | - - name: Download coverage results |
103 | | - uses: actions/download-artifact@v4 |
104 | | - with: |
105 | | - name: coverage-results |
106 | | - path: coverage |
107 | | - - uses: joshmfrankel/simplecov-check-action@be89e11889202cc59efb14aab2a7091622fa9aad |
108 | | - with: |
109 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
110 | | - minimum_suite_coverage: 100 |
111 | | - minimum_file_coverage: 100 |
112 | | - coverage_json_path: coverage/simplecov-check-action.json |
113 | | - |
114 | | - rubocop: |
| 67 | + linting: |
115 | 68 | runs-on: ubuntu-latest |
116 | 69 | steps: |
117 | 70 | - uses: actions/checkout@v4 |
|
122 | 75 | ruby-version: "ruby" |
123 | 76 | bundler-cache: false |
124 | 77 | - run: bundle install |
125 | | - - name: Run RuboCop |
126 | | - run: bundle exec rubocop |
| 78 | + - name: Run standard |
| 79 | + run: bundle exec standardrb |
127 | 80 |
|
128 | 81 | docs: |
129 | 82 | runs-on: ubuntu-latest |
|
145 | 98 | - test |
146 | 99 | - matrix-test |
147 | 100 | - docs |
148 | | - - rubocop |
| 101 | + - linting |
149 | 102 | steps: |
150 | 103 | - name: failure |
151 | 104 | if: ${{ failure() || contains(needs.*.result, 'failure') }} |
|
0 commit comments