diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml index 7374ff66a8c29d..0251ff651265c2 100644 --- a/.github/workflows/authors.yml +++ b/.github/workflows/authors.yml @@ -1,4 +1,4 @@ -name: "authors update" +name: Authors update on: schedule: # Run once a week at 00:05 AM UTC on Sunday. diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 21a8de921798d1..e27d5db8f597be 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -12,17 +12,17 @@ env: NODE_VERSION: lts/* jobs: - startCI: + start-ci: if: github.repository == 'nodejs/node' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - # Install dependencies - name: Install Node.js uses: actions/setup-node@v2 with: node-version: ${{ env.NODE_VERSION }} + - name: Install node-core-utils run: npm install -g node-core-utils diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 7f96504f781406..2faf392deae677 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -21,13 +21,12 @@ on: - 'doc/**' env: + PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare jobs: build-tarball: if: github.event.pull_request.draft == false - env: - PYTHON_VERSION: '3.10' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -51,8 +50,6 @@ jobs: name: tarballs path: tarballs test-tarball-linux: - env: - PYTHON_VERSION: '3.10' needs: build-tarball runs-on: ubuntu-latest steps: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 992319168b7e9c..a569a2ee2fef5a 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -1,9 +1,8 @@ -name: build-windows +name: Build Windows on: pull_request: - paths-ignore: - - "README.md" + paths-ignore: [README.md] types: [opened, synchronize, reopened, ready_for_review] push: branches: @@ -12,8 +11,7 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths-ignore: - - "README.md" + paths-ignore: [README.md] env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/comment-labeled.yml b/.github/workflows/comment-labeled.yml index c2c700c38b8ca1..27a15debd1b0ca 100644 --- a/.github/workflows/comment-labeled.yml +++ b/.github/workflows/comment-labeled.yml @@ -1,4 +1,4 @@ -name: Comment on issues and PRs when labelled +name: Comment on issues and PRs when labeled on: issues: types: [labeled] @@ -6,7 +6,7 @@ on: types: [labeled] jobs: - staleComment: + stale-comment: if: github.repository == 'nodejs/node' && github.event.label.name == 'stalled' runs-on: ubuntu-latest steps: @@ -19,7 +19,7 @@ jobs: -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ --data '{ "body": "This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open." }' - fastTrack: + fast-track: if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index 0f0c6d66938d2c..3aaccab188849a 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -1,4 +1,4 @@ -name: "First commit message adheres to guidelines at https://goo.gl/p2fr5Q" +name: First commit message adheres to guidelines at https://goo.gl/p2fr5Q on: [pull_request] diff --git a/.github/workflows/coverage-linux.yml b/.github/workflows/coverage-linux.yml index e322e764840989..43959a39ce191f 100644 --- a/.github/workflows/coverage-linux.yml +++ b/.github/workflows/coverage-linux.yml @@ -1,4 +1,4 @@ -name: coverage-linux +name: Coverage Linux on: pull_request: @@ -9,9 +9,7 @@ on: - 'deps/**' - 'doc/**' push: - branches: - - master - - main + branches: [master, main] paths-ignore: - '**.md' - 'benchmark/**' diff --git a/.github/workflows/coverage-windows.yml b/.github/workflows/coverage-windows.yml index 4473eb9bd74ae3..9f2f8d847f869d 100644 --- a/.github/workflows/coverage-windows.yml +++ b/.github/workflows/coverage-windows.yml @@ -1,4 +1,4 @@ -name: coverage-windows +name: Coverage Windows on: pull_request: @@ -10,9 +10,7 @@ on: - 'doc/**' - 'tools/**' push: - branches: - - master - - main + branches: [master, main] paths-ignore: - '**.md' - 'benchmark/**' diff --git a/.github/workflows/misc.yml b/.github/workflows/doc.yml similarity index 94% rename from .github/workflows/misc.yml rename to .github/workflows/doc.yml index 64f58f2e96f448..e8a175eddc315c 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/doc.yml @@ -1,4 +1,4 @@ -name: misc +name: Test and upload documentation to artifacts on: pull_request: diff --git a/.github/workflows/license-builder.yml b/.github/workflows/license-builder.yml index 5f9af7bd7750ac..8e401172e8aad4 100644 --- a/.github/workflows/license-builder.yml +++ b/.github/workflows/license-builder.yml @@ -1,4 +1,4 @@ -name: license update +name: License update on: schedule: # 00:00:00 every Monday diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index ebd27575c4778b..00894ea2f039cb 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -1,4 +1,4 @@ -name: linters +name: Linters on: pull_request: @@ -109,7 +109,7 @@ jobs: lint-sh: if: github.event.pull_request.draft == false - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: shellcheck -V diff --git a/.github/workflows/notify-force-push.yml b/.github/workflows/notify-force-push.yml index 9c2fc3a6a4e64d..e39fefdbda9d93 100644 --- a/.github/workflows/notify-force-push.yml +++ b/.github/workflows/notify-force-push.yml @@ -8,7 +8,7 @@ name: Notify on Force Push jobs: slackNotification: name: Slack Notification - if: ${{ github.event.forced && github.repository == 'nodejs/node' }} + if: github.repository == 'nodejs/node' && github.event.forced runs-on: ubuntu-latest steps: - name: Slack Notification diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index 8965e38dd09502..173484eaefc508 100644 --- a/.github/workflows/test-asan.yml +++ b/.github/workflows/test-asan.yml @@ -1,4 +1,4 @@ -name: test-asan +name: Test Asan on: pull_request: diff --git a/.github/workflows/test-internet.yml b/.github/workflows/test-internet.yml index 44757dd287280c..e460d23f9a9365 100644 --- a/.github/workflows/test-internet.yml +++ b/.github/workflows/test-internet.yml @@ -1,4 +1,4 @@ -name: test-internet +name: Test internet on: workflow_dispatch: @@ -7,8 +7,7 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] - paths: - - test/internet/** + paths: [test/internet/**] push: branches: - master @@ -16,8 +15,7 @@ on: - canary - v[0-9]+.x-staging - v[0-9]+.x - paths: - - test/internet/** + paths: [test/internet/**] env: PYTHON_VERSION: '3.10' diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 374bf747790399..1135d3ed2e2870 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -1,9 +1,9 @@ -name: test-linux +name: Test Linux on: pull_request: paths-ignore: - - "README.md" + - README.md - .github/** - '!.github/workflows/test-linux.yml' types: [opened, synchronize, reopened, ready_for_review] @@ -15,7 +15,7 @@ on: - v[0-9]+.x-staging - v[0-9]+.x paths-ignore: - - "README.md" + - README.md - .github/** - '!.github/workflows/test-linux.yml' diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 2926c3ed2eb568..df5ad59810b657 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -1,4 +1,4 @@ -name: test-macOS +name: Test macOS on: pull_request: diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index 1d249832cafaeb..a8885e3ef3b8bd 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -1,4 +1,4 @@ -name: "tools update" +name: Tools update on: schedule: # Run once a week at 00:05 AM UTC on Saturday. @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - tools_update: + tools-update: if: github.repository == 'nodejs/node' runs-on: ubuntu-latest strategy: