diff --git a/.github/workflows/code-compatibility.yaml b/.github/workflows/code-compatibility.yaml index 177164ac14b..9271d7bfd74 100644 --- a/.github/workflows/code-compatibility.yaml +++ b/.github/workflows/code-compatibility.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check for unsupported functions run: | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6397ef8e958..9e0b11303a9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 9b1e960515a..ffe10a23b0d 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: dorny/paths-filter@v2 id: changes with: diff --git a/.github/workflows/fg-sync-repos.yml b/.github/workflows/fg-sync-repos.yml index bbac6e34326..c409d591116 100644 --- a/.github/workflows/fg-sync-repos.yml +++ b/.github/workflows/fg-sync-repos.yml @@ -26,7 +26,7 @@ jobs: repositories: "milo-pink" - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: persist-credentials: false ref: ${{ inputs.syncBranch }} diff --git a/.github/workflows/high-impact-alert.yml b/.github/workflows/high-impact-alert.yml index 13ecbbb8e18..9fa01dacc2b 100644 --- a/.github/workflows/high-impact-alert.yml +++ b/.github/workflows/high-impact-alert.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.base.ref }} - name: Send Slack message for high impact PRs - uses: actions/github-script@v7.0.1 + uses: actions/github-script@v7 with: script: | const main = require('./.github/workflows/high-impact-alert.js') diff --git a/.github/workflows/label-zero-impact.yaml b/.github/workflows/label-zero-impact.yaml index d0ce9192460..ee7a4322a80 100644 --- a/.github/workflows/label-zero-impact.yaml +++ b/.github/workflows/label-zero-impact.yaml @@ -10,10 +10,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4 - name: Add the zero impact label - uses: actions/github-script@v7.0.1 + uses: actions/github-script@v7 with: script: | const main = require('./.github/workflows/label-zero-impact.js') diff --git a/.github/workflows/merge-to-main.yaml b/.github/workflows/merge-to-main.yaml index 9b4ba782bff..ada833d19fa 100644 --- a/.github/workflows/merge-to-main.yaml +++ b/.github/workflows/merge-to-main.yaml @@ -19,17 +19,17 @@ jobs: if: github.repository_owner == 'adobecom' && (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' && github.event.pull_request.head.ref == 'stage')) steps: - - uses: actions/create-github-app-token@v1.10.0 + - uses: actions/create-github-app-token@v1 id: milo-pr-merge-token with: app-id: ${{ secrets.MILO_PR_MERGE_APP_ID }} private-key: ${{ secrets.MILO_PR_MERGE_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4 - name: Merge to main - uses: actions/github-script@v7.0.1 + uses: actions/github-script@v7 with: github-token: ${{ steps.milo-pr-merge-token.outputs.token }} script: | diff --git a/.github/workflows/merge-to-stage.yaml b/.github/workflows/merge-to-stage.yaml index c6457233d69..16323f9433a 100644 --- a/.github/workflows/merge-to-stage.yaml +++ b/.github/workflows/merge-to-stage.yaml @@ -19,17 +19,17 @@ jobs: environment: milo_pr_merge steps: - - uses: actions/create-github-app-token@v1.10.0 + - uses: actions/create-github-app-token@v1 id: milo-pr-merge-token with: app-id: ${{ secrets.MILO_PR_MERGE_APP_ID }} private-key: ${{ secrets.MILO_PR_MERGE_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v4.1.4 + uses: actions/checkout@v4 - name: Merge to stage or queue to merge - uses: actions/github-script@v7.0.1 + uses: actions/github-script@v7 with: github-token: ${{ steps.milo-pr-merge-token.outputs.token }} script: | diff --git a/.github/workflows/run-lint.yaml b/.github/workflows/run-lint.yaml index 3aab1f8ebb8..adf7b153b7f 100644 --- a/.github/workflows/run-lint.yaml +++ b/.github/workflows/run-lint.yaml @@ -10,11 +10,11 @@ jobs: name: Running eslint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install dependencies run: npm ci diff --git a/.github/workflows/run-nala-milolibs.yaml b/.github/workflows/run-nala-milolibs.yaml index 90eca9d373f..eb159474935 100644 --- a/.github/workflows/run-nala-milolibs.yaml +++ b/.github/workflows/run-nala-milolibs.yaml @@ -1,54 +1,54 @@ -name: Run Nala on Milo Libs - -on: - workflow_dispatch: - inputs: - branch: - description: 'Provide the live branch url. ex: https://main--cc--adobecom.hlx.live' - required: false - type: string - milolibs: - description: 'Provide MiloLibs param. ex: ?milolibs=marquee-static-hover' - required: false - type: string - tags: - description: 'Test scenario tags, if empty all tests will run. i.e., @marquee' - required: false - type: string - platform: - description: 'Platform to run tests on; select one, options: [ubuntu-latest, macos-latest]' - required: true - type: string - -jobs: - action: - name: Running tests - runs-on: ${{ inputs.platform }} - env: - WORKFLOW_NAME: 'Milo Libs Run' - MILO_LIBS_RUN: 'true' - - steps: - - name: Check out repository - uses: actions/checkout@v3 - - - name: Set environment variables - run: | - echo "PR_BRANCH_MILOLIBS_LIVE_URL=${{ github.event.inputs.branch }}" >> $GITHUB_ENV - echo "MILO_LIBS=${{ github.event.inputs.milolibs }}" >> $GITHUB_ENV - - - name: Run Nala ${{ inputs.platform }} - uses: adobecom/nala@main - env: - labels: ${{ inputs.tags }} - IMS_EMAIL: ${{ secrets.IMS_EMAIL }} - IMS_PASS: ${{ secrets.IMS_PASS }} - HLX_TKN: ${{ secrets.HLX_TKN }} - SLACK_WH: ${{ secrets.SLACK_WH }} - - name: Persist JSON Artifact - uses: actions/upload-artifact@v3 - if: always() - with: - name: nala-results - path: nala-results.json - retention-days: 30 +name: Run Nala on Milo Libs + +on: + workflow_dispatch: + inputs: + branch: + description: 'Provide the live branch url. ex: https://main--cc--adobecom.hlx.live' + required: false + type: string + milolibs: + description: 'Provide MiloLibs param. ex: ?milolibs=marquee-static-hover' + required: false + type: string + tags: + description: 'Test scenario tags, if empty all tests will run. i.e., @marquee' + required: false + type: string + platform: + description: 'Platform to run tests on; select one, options: [ubuntu-latest, macos-latest]' + required: true + type: string + +jobs: + action: + name: Running tests + runs-on: ${{ inputs.platform }} + env: + WORKFLOW_NAME: 'Milo Libs Run' + MILO_LIBS_RUN: 'true' + + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set environment variables + run: | + echo "PR_BRANCH_MILOLIBS_LIVE_URL=${{ github.event.inputs.branch }}" >> $GITHUB_ENV + echo "MILO_LIBS=${{ github.event.inputs.milolibs }}" >> $GITHUB_ENV + + - name: Run Nala ${{ inputs.platform }} + uses: adobecom/nala@main + env: + labels: ${{ inputs.tags }} + IMS_EMAIL: ${{ secrets.IMS_EMAIL }} + IMS_PASS: ${{ secrets.IMS_PASS }} + HLX_TKN: ${{ secrets.HLX_TKN }} + SLACK_WH: ${{ secrets.SLACK_WH }} + - name: Persist JSON Artifact + uses: actions/upload-artifact@v3 + if: always() + with: + name: nala-results + path: nala-results.json + retention-days: 30 diff --git a/.github/workflows/run-nala.yml b/.github/workflows/run-nala.yml index 2117468a808..7b701eb8e51 100644 --- a/.github/workflows/run-nala.yml +++ b/.github/workflows/run-nala.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Nala uses: adobecom/nala@main # Change if doing dev work env: diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 1319736fdc6..cc7e3eb80d1 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x] + node-version: [20.x] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/skms.yaml b/.github/workflows/skms.yaml index 789514a9a75..269cfe89696 100644 --- a/.github/workflows/skms.yaml +++ b/.github/workflows/skms.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Runs a single command using the runners shell for shell validation - name: Validate Shell diff --git a/.github/workflows/update-dependencies.yaml b/.github/workflows/update-dependencies.yaml index c23e90592df..a6cc0aaf326 100644 --- a/.github/workflows/update-dependencies.yaml +++ b/.github/workflows/update-dependencies.yaml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - name: Update file and create PR if needed - uses: actions/github-script@v7.0.1 + uses: actions/github-script@v7 with: script: | const updateDependency = require('./.github/workflows/update-script.js')