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
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: Install Client Package
|
- name: Install Client Package
|
||||||
if: matrix.NPM_CLIENT == 'pnpm'
|
if: ${{ matrix.NPM_CLIENT == 'pnpm' }}
|
||||||
run: npm install --global pnpm@5
|
run: npm install --global pnpm@5
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
|
|||||||
@@ -55,16 +55,16 @@ jobs:
|
|||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run Tests (macOS)
|
- name: Run Tests (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
run: yarn test --maxWorkers=4
|
run: yarn test --maxWorkers=4
|
||||||
|
|
||||||
- name: Run Tests (Linux and Windows)
|
- name: Run Tests (Linux and Windows)
|
||||||
if: matrix.os != 'macos-latest'
|
if: ${{ matrix.os != 'macos-latest' }}
|
||||||
run: yarn test --maxWorkers=2
|
run: yarn test --maxWorkers=2
|
||||||
|
|
||||||
- name: Upload Coverage
|
- name: Upload Coverage
|
||||||
uses: codecov/codecov-action@v1.5.2
|
uses: codecov/codecov-action@v1.5.2
|
||||||
if: matrix.ENABLE_CODE_COVERAGE
|
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
|
||||||
@@ -76,6 +76,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Coverage (PRETTIER_FALLBACK_RESOLVE)
|
- name: Upload Coverage (PRETTIER_FALLBACK_RESOLVE)
|
||||||
uses: codecov/codecov-action@v1.5.2
|
uses: codecov/codecov-action@v1.5.2
|
||||||
if: matrix.ENABLE_CODE_COVERAGE
|
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
@@ -39,5 +39,11 @@ jobs:
|
|||||||
- name: Lint Changelog
|
- name: Lint Changelog
|
||||||
run: yarn 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
|
- name: Check Lock File Changes
|
||||||
run: yarn && echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint."
|
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
|
# It should be the last step
|
||||||
# The cache step might saving the result of main branch, need investigate
|
# The cache step might saving the result of main branch, need investigate
|
||||||
- name: Check Sizes
|
- 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
|
uses: preactjs/compressed-size-action@2.3.0
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@@ -116,7 +116,7 @@ jobs:
|
|||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|
||||||
- name: Config `ignore-engines=true` (Node.js 10)
|
- name: Config `ignore-engines=true` (Node.js 10)
|
||||||
if: matrix.node == '10'
|
if: ${{ matrix.node == '10' }}
|
||||||
run: yarn config set ignore-engines true
|
run: yarn config set ignore-engines true
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
@@ -129,19 +129,19 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: Run Tests (macOS)
|
- name: Run Tests (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
run: yarn test:dist --maxWorkers=4
|
run: yarn test:dist --maxWorkers=4
|
||||||
|
|
||||||
- name: Run Tests (Linux and Windows)
|
- name: Run Tests (Linux and Windows)
|
||||||
if: matrix.os != 'macos-latest'
|
if: ${{ matrix.os != 'macos-latest' }}
|
||||||
run: yarn test:dist --maxWorkers=2
|
run: yarn test:dist --maxWorkers=2
|
||||||
|
|
||||||
- name: Run Tests (standalone) (macOS)
|
- name: Run Tests (standalone) (macOS)
|
||||||
if: matrix.os == 'macos-latest'
|
if: ${{ matrix.os == 'macos-latest' }}
|
||||||
run: yarn test:dist-standalone --maxWorkers=4
|
run: yarn test:dist-standalone --maxWorkers=4
|
||||||
|
|
||||||
- name: Run Tests (standalone) (Linux and Windows)
|
- name: Run Tests (standalone) (Linux and Windows)
|
||||||
if: matrix.os != 'macos-latest'
|
if: ${{ matrix.os != 'macos-latest' }}
|
||||||
run: yarn test:dist-standalone --maxWorkers=2
|
run: yarn test:dist-standalone --maxWorkers=2
|
||||||
|
|
||||||
# #8073 test
|
# #8073 test
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
"words": [
|
"words": [
|
||||||
|
"actionlint",
|
||||||
"ACMR",
|
"ACMR",
|
||||||
"Alexa",
|
"Alexa",
|
||||||
"algolia",
|
"algolia",
|
||||||
|
|||||||
Reference in new issue
Block a user