diff --git a/.github/workflows/dev-package-test.yml b/.github/workflows/dev-package-test.yml index 7a14eeef9..47c9f4bab 100644 --- a/.github/workflows/dev-package-test.yml +++ b/.github/workflows/dev-package-test.yml @@ -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 diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 765cf4998..89bc090cd 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 589139377..8e27907d9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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." diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 2c4a8266c..7f989fea6 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -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 diff --git a/cspell.json b/cspell.json index 5daec9eba..ed873cec4 100644 --- a/cspell.json +++ b/cspell.json @@ -1,6 +1,7 @@ { "version": "0.1", "words": [ + "actionlint", "ACMR", "Alexa", "algolia",