@@ -64,43 +64,43 @@ jobs:
64
64
- id : detector
65
65
uses : sounisi5011/npm-packages@actions/get-nodejs-versions-array-v0
66
66
67
- lint :
68
- needs : if-run-ci
69
- runs-on : ubuntu-latest
70
- steps :
71
- - uses : actions/checkout@v3
72
-
73
- - name : Reconfigure git to use HTTP authentication
74
- # see https://stackoverflow.com/a/69634516
75
- # see https://github.com/actions/setup-node/issues/214#issuecomment-810829250
76
- shell : bash
77
- run : |
78
- git config --global \
79
- 'url.https://${{ secrets.GITHUB_TOKEN }}@github.com/.insteadOf' \
80
-
81
-
82
- - name : Install Node.js
83
- uses : actions/setup-node@v3
84
- with :
85
- node-version : 14.x
86
- cache : npm
87
-
88
- - name : Enable Corepack (Automatically setup a package manager for Node.js)
89
- run : |
90
- corepack enable
91
- corepack enable npm
92
-
93
- - name : Show node and npm version
94
- shell : bash
95
- run : |
96
- echo node "$(node --version)"
97
- echo npm "$(npm --version)"
98
-
99
- - name : Install dependencies
100
- run : npm ci
101
-
102
- - name : Run linter
103
- run : npm run test:other-than-unit-test
67
+ # lint:
68
+ # needs: if-run-ci
69
+ # runs-on: ubuntu-latest
70
+ # steps:
71
+ # - uses: actions/checkout@v3
72
+
73
+ # - name: Reconfigure git to use HTTP authentication
74
+ # # see https://stackoverflow.com/a/69634516
75
+ # # see https://github.com/actions/setup-node/issues/214#issuecomment-810829250
76
+ # shell: bash
77
+ # run: |
78
+ # git config --global \
79
+ # 'url.https://${{ secrets.GITHUB_TOKEN }}@github.com/.insteadOf' \
80
+
81
+
82
+ # - name: Install Node.js
83
+ # uses: actions/setup-node@v3
84
+ # with:
85
+ # node-version: 14.x
86
+ # cache: npm
87
+
88
+ # - name: Enable Corepack (Automatically setup a package manager for Node.js)
89
+ # run: |
90
+ # corepack enable
91
+ # corepack enable npm
92
+
93
+ # - name: Show node and npm version
94
+ # shell: bash
95
+ # run: |
96
+ # echo node "$(node --version)"
97
+ # echo npm "$(npm --version)"
98
+
99
+ # - name: Install dependencies
100
+ # run: npm ci
101
+
102
+ # - name: Run linter
103
+ # run: npm run test:other-than-unit-test
104
104
105
105
unit-test :
106
106
needs : detect-supported-node
@@ -156,6 +156,8 @@ jobs:
156
156
157
157
readonly npmSemver="${packageManager##npm@}"
158
158
echo "required-npm-version=${npmSemver%%+*}" >> "${GITHUB_ENV}"
159
+ else
160
+ echo "corepack-available=1" >> "${GITHUB_ENV}"
159
161
fi
160
162
161
163
# If yarn is not available, install it
@@ -202,23 +204,23 @@ jobs:
202
204
# So we can simplify our GitHub status check configuration.
203
205
# see https://github.com/orgs/community/discussions/26822
204
206
# see https://github.com/sounisi5011/npm-packages/blob/2a5ca2de696eeb8b40a38de90580441c4c6c96e0/.github/workflows/ci.yaml#L482-L498
205
- complete :
206
- name : Complete CI
207
- needs : [lint, unit-test]
208
- if :
209
- ${{ always() && github.event.pull_request }}
210
- # This job is required only for Pull Requests.
211
- # It does not need to be run on other branches.
212
- runs-on : ubuntu-latest
213
- steps :
214
- - name : Check all job status
215
- # see https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
216
- # see https://docs.github.com/en/actions/learn-github-actions/expressions#contains
217
- # see https://stackoverflow.com/a/67532120/4907315
218
- if : >-
219
- ${{
220
- contains(needs.*.result, 'failure')
221
- || contains(needs.*.result, 'cancelled')
222
- || contains(needs.*.result, 'skipped')
223
- }}
224
- run : exit 1
207
+ # complete:
208
+ # name: Complete CI
209
+ # needs: [lint, unit-test]
210
+ # if:
211
+ # ${{ always() && github.event.pull_request }}
212
+ # # This job is required only for Pull Requests.
213
+ # # It does not need to be run on other branches.
214
+ # runs-on: ubuntu-latest
215
+ # steps:
216
+ # - name: Check all job status
217
+ # # see https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context
218
+ # # see https://docs.github.com/en/actions/learn-github-actions/expressions#contains
219
+ # # see https://stackoverflow.com/a/67532120/4907315
220
+ # if: >-
221
+ # ${{
222
+ # contains(needs.*.result, 'failure')
223
+ # || contains(needs.*.result, 'cancelled')
224
+ # || contains(needs.*.result, 'skipped')
225
+ # }}
226
+ # run: exit 1
0 commit comments