Fix workflow files according to actionlint (#11197)
* Fix by actionlint * Run actionlint in GH Actions * Update cspelljson * Test * Revert Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
e1afe1adc2
commit
c2599d4714
5 files changed
+18
-11
No files matched your search
@@ -41,7 +41,7 @@ jobs:
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Install Client Package
|
||||
if: matrix.NPM_CLIENT == 'pnpm'
|
||||
if: ${{ matrix.NPM_CLIENT == 'pnpm' }}
|
||||
run: npm install --global pnpm@5
|
||||
|
||||
- name: Run Tests
|
||||
|
||||
@@ -55,16 +55,16 @@ jobs:
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: Run Tests (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: yarn test --maxWorkers=4
|
||||
|
||||
- name: Run Tests (Linux and Windows)
|
||||
if: matrix.os != 'macos-latest'
|
||||
if: ${{ matrix.os != 'macos-latest' }}
|
||||
run: yarn test --maxWorkers=2
|
||||
|
||||
- name: Upload Coverage
|
||||
uses: codecov/codecov-action@v1.5.2
|
||||
if: matrix.ENABLE_CODE_COVERAGE
|
||||
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
@@ -76,6 +76,6 @@ jobs:
|
||||
|
||||
- name: Upload Coverage (PRETTIER_FALLBACK_RESOLVE)
|
||||
uses: codecov/codecov-action@v1.5.2
|
||||
if: matrix.ENABLE_CODE_COVERAGE
|
||||
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
@@ -39,5 +39,11 @@ jobs:
|
||||
- name: Lint Changelog
|
||||
run: yarn lint:changelog
|
||||
|
||||
- name: Lint workflow files
|
||||
run: |
|
||||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
||||
./actionlint -color
|
||||
shell: bash
|
||||
|
||||
- name: Check Lock File Changes
|
||||
run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint."
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
# It should be the last step
|
||||
# The cache step might saving the result of main branch, need investigate
|
||||
- name: Check Sizes
|
||||
if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/npm_and_yarn/')
|
||||
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/npm_and_yarn/') }}
|
||||
uses: preactjs/compressed-size-action@2.3.0
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -116,7 +116,7 @@ jobs:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
||||
- name: Config `ignore-engines=true` (Node.js 10)
|
||||
if: matrix.node == '10'
|
||||
if: ${{ matrix.node == '10' }}
|
||||
run: yarn config set ignore-engines true
|
||||
|
||||
- name: Install Dependencies
|
||||
@@ -129,19 +129,19 @@ jobs:
|
||||
path: dist
|
||||
|
||||
- name: Run Tests (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: yarn test:dist --maxWorkers=4
|
||||
|
||||
- name: Run Tests (Linux and Windows)
|
||||
if: matrix.os != 'macos-latest'
|
||||
if: ${{ matrix.os != 'macos-latest' }}
|
||||
run: yarn test:dist --maxWorkers=2
|
||||
|
||||
- name: Run Tests (standalone) (macOS)
|
||||
if: matrix.os == 'macos-latest'
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: yarn test:dist-standalone --maxWorkers=4
|
||||
|
||||
- name: Run Tests (standalone) (Linux and Windows)
|
||||
if: matrix.os != 'macos-latest'
|
||||
if: ${{ matrix.os != 'macos-latest' }}
|
||||
run: yarn test:dist-standalone --maxWorkers=2
|
||||
|
||||
# #8073 test
|
||||
|
||||
Reference in new issue
Block a user