From 2c802cafd1f5ddc068a8e196eef0487410b11aea Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Sun, 17 Apr 2022 16:39:41 +0800 Subject: [PATCH] misc: add a name to each GH action step --- .github/workflows/build-blog-only.yml | 6 ++++-- .github/workflows/build-perf.yml | 9 ++++++--- .github/workflows/canary-release.yml | 3 ++- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dependency-review.yml | 7 ++++--- .github/workflows/lighthouse-report.yml | 3 ++- .github/workflows/lint.yml | 6 ++++-- .github/workflows/showcase-test.yml | 3 ++- .github/workflows/tests-e2e.yml | 12 ++++++++---- .github/workflows/tests-swizzle.yml | 7 ++++--- .github/workflows/tests-windows.yml | 3 ++- .github/workflows/tests.yml | 3 ++- 12 files changed, 41 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-blog-only.yml b/.github/workflows/build-blog-only.yml index 3e28728c85aa..5cfe15af0848 100644 --- a/.github/workflows/build-blog-only.yml +++ b/.github/workflows/build-blog-only.yml @@ -16,8 +16,10 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - - uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Set up Node + uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: node-version: '16' cache: yarn diff --git a/.github/workflows/build-perf.yml b/.github/workflows/build-perf.yml index a5838cd7b858..785b6cbd4b2b 100644 --- a/.github/workflows/build-perf.yml +++ b/.github/workflows/build-perf.yml @@ -26,12 +26,15 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - - uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Set up Node + uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: node-version: '16' cache: yarn - - uses: preactjs/compressed-size-action@8119d3d31b6e57b167e09c81dfa877eada3bcb35 # v2 + - name: Track build size changes + uses: preactjs/compressed-size-action@8119d3d31b6e57b167e09c81dfa877eada3bcb35 # v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} build-script: build:website:en diff --git a/.github/workflows/canary-release.yml b/.github/workflows/canary-release.yml index 9b6b8829ea22..cb35ef589b02 100644 --- a/.github/workflows/canary-release.yml +++ b/.github/workflows/canary-release.yml @@ -15,7 +15,8 @@ jobs: name: Publish Canary runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 with: fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD" - name: Set up Node diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 0958cf4ebca1..f4de6eb44655 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -26,7 +26,7 @@ jobs: - javascript steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Initialize CodeQL diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index dcd2a1dfcc0a..8f1b96d08058 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,4 +1,4 @@ -name: 'Dependency Review' +name: Dependency Review on: [pull_request] permissions: @@ -8,6 +8,7 @@ jobs: dependency-review: runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 - - name: 'Dependency Review' + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 + - name: Dependency Review uses: actions/dependency-review-action@3f943b86c9a289f4e632c632695e2e0898d9d67d # v1 diff --git a/.github/workflows/lighthouse-report.yml b/.github/workflows/lighthouse-report.yml index c4c0eb830380..fdef85796630 100644 --- a/.github/workflows/lighthouse-report.yml +++ b/.github/workflows/lighthouse-report.yml @@ -10,7 +10,8 @@ jobs: name: Lighthouse Report runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Wait for the Netlify Preview uses: jakepartusch/wait-for-netlify-action@7dcdeb40c6bc3710a8099702a1fa1ce2c5e322a6 # v1 id: netlify diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1622d0f8e0ad..e2f19dce1710 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,8 +14,10 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - - uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Set up Node + uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: node-version: '16' cache: yarn diff --git a/.github/workflows/showcase-test.yml b/.github/workflows/showcase-test.yml index b019e67cbd01..0e91d37bf79e 100644 --- a/.github/workflows/showcase-test.yml +++ b/.github/workflows/showcase-test.yml @@ -16,7 +16,8 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Set up Node uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index 8ba4f0500ca2..e9b07247a553 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -24,7 +24,8 @@ jobs: matrix: node: ['14', '16', '17'] steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: @@ -62,7 +63,8 @@ jobs: - variant: -st nodeLinker: pnp steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Use Node.js 16 uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: @@ -107,7 +109,8 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 - name: Use Node.js 16 uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: @@ -136,7 +139,8 @@ jobs: timeout-minutes: 30 runs-on: ubuntu-latest steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 #v3 - name: Use Node.js 16 uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: diff --git a/.github/workflows/tests-swizzle.yml b/.github/workflows/tests-swizzle.yml index 058b927b7cae..2805e26121ac 100644 --- a/.github/workflows/tests-swizzle.yml +++ b/.github/workflows/tests-swizzle.yml @@ -20,11 +20,12 @@ jobs: action: ['eject', 'wrap'] variant: ['js', 'ts'] steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - - name: Use Node.js + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Set up Node uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: - node-version: 14 + node-version: '16' cache: yarn - name: Installation run: yarn diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 96a3969876e4..56f7922e5d12 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -21,7 +21,8 @@ jobs: steps: - name: Support longpaths run: git config --system core.longpaths true - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a8dbafc13bb5..d2764dc5e1f4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,7 +19,8 @@ jobs: matrix: node: ['14', '16', '17'] steps: - - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3 with: