Skip to content

Commit

Permalink
Merge pull request #6333 from google/6188-update-github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv authored Jan 5, 2023
2 parents b92e887 + d839fb8 commit afc11b0
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
timeout-minutes: 20
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests-wp-5-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
run: npm run test:e2e

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: e2e-screenshots
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests-wp-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
run: npm run test:e2e

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: e2e-screenshots
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests-wp-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.draft == false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
run: npm run test:e2e

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: e2e-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js-css-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-tests-wp-5-2-php-5-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
WP_VERSION: '5.2'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
tools: composer:2.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
WP_VERSION: latest
WP_MULTISITE: '1'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
extensions: mysqli, runkit7, uopz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-tests-wp-latest-php-7-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
WP_VERSION: latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
extensions: mysqli, runkit7, uopz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-tests-wp-latest-php-8-0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
WP_VERSION: latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
extensions: mysqli, runkit7, uopz
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-tests-wp-nightly-php-7-4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
MYSQL_DATABASE: wordpress_test
WP_VERSION: nightly
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
extensions: mysqli, runkit7, uopz
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
timeout-minutes: 20
if: false == ( ( github.event_name == 'pull_request' && ( github.event.action == 'closed' || github.event.pull_request.draft == true || contains( github.head_ref, 'dependabot/' ) ) ) || github.event.pull_request.head.repo.fork )
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
with:
Expand All @@ -69,7 +69,7 @@ jobs:
run: |
npm run build:storybook
- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: storybook-files
path: dist
Expand All @@ -79,11 +79,11 @@ jobs:
runs-on: ubuntu-latest
needs: build-storybook
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: storybook-files
path: dist
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
timeout-minutes: 20
if: ( github.event_name == 'pull_request' && github.event.action == 'closed' && contains( github.head_ref, 'dependabot/' ) == false ) && github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Remove storybook
Expand All @@ -146,9 +146,9 @@ jobs:
timeout-minutes: 20
if: false == ( ( github.event_name == 'pull_request' && ( github.event.action == 'closed' || github.event.pull_request.draft == true || contains( github.head_ref, 'dependabot/' ) ) ) || github.event.pull_request.head.repo.fork )
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: storybook-files
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/visual-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 20
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js (.nvmrc)
uses: actions/setup-node@v3
with:
Expand All @@ -49,7 +49,7 @@ jobs:
- name: Run Backstopjs
run: npm run test:visualtest
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
if: failure()
with:
name: vrt-report
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/zips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
timeout-minutes: 20
if: false == ( ( github.event_name == 'pull_request' && ( github.event.action == 'closed' || github.event.pull_request.draft == true || contains( github.head_ref, 'dependabot/' ) ) ) || github.event.pull_request.head.repo.fork )
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
npm run release-zip
mv *.zip ${{ github.ref }}/google-site-kit.zip
- name: Upload artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: zip-files
path: ${{ github.ref }}
Expand All @@ -116,14 +116,14 @@ jobs:
runs-on: ubuntu-latest
needs: build-zips
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
# GitHub Wikis use this term as their main branch; this cannot be
# changed so we need to continue using it for now.
ref: master
- name: Download artifacts
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: zip-files
path: ${{ github.ref }}
Expand All @@ -147,7 +147,7 @@ jobs:
timeout-minutes: 20
if: ( github.event_name == 'pull_request' && github.event.action == 'closed' && contains( github.head_ref, 'dependabot/' ) == false ) && github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
# GitHub Wikis use this term as their main branch; this cannot be
Expand Down

0 comments on commit afc11b0

Please sign in to comment.