mirror of https://github.com/zulip/zulip.git
ci: Upgrade external GitHub actions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
ecbfd61e6a
commit
0347e07a96
|
@ -26,7 +26,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
# cache action to work. It is owned by root currently.
|
# cache action to work. It is owned by root currently.
|
||||||
sudo chmod -R 0777 /__w/_temp/
|
sudo chmod -R 0777 /__w/_temp/
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create cache directories
|
- name: Create cache directories
|
||||||
run: |
|
run: |
|
||||||
|
@ -73,20 +73,20 @@ jobs:
|
||||||
sudo chown -R github "${dirs[@]}"
|
sudo chown -R github "${dirs[@]}"
|
||||||
|
|
||||||
- name: Restore pnpm store
|
- name: Restore pnpm store
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /__w/.pnpm-store
|
path: /__w/.pnpm-store
|
||||||
key: v1-pnpm-store-focal-${{ hashFiles('pnpm-lock.yaml') }}
|
key: v1-pnpm-store-focal-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-venv-cache
|
path: /srv/zulip-venv-cache
|
||||||
key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }}
|
key: v1-venv-focal-${{ hashFiles('requirements/dev.txt') }}
|
||||||
restore-keys: v1-venv-focal
|
restore-keys: v1-venv-focal
|
||||||
|
|
||||||
- name: Restore emoji cache
|
- name: Restore emoji cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-emoji-cache
|
path: /srv/zulip-emoji-cache
|
||||||
key: v1-emoji-focal-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }}
|
key: v1-emoji-focal-${{ hashFiles('tools/setup/emoji/emoji_map.json') }}-${{ hashFiles('tools/setup/emoji/build_emoji') }}-${{ hashFiles('tools/setup/emoji/emoji_setup_utils.py') }}-${{ hashFiles('tools/setup/emoji/emoji_names.py') }}-${{ hashFiles('package.json') }}
|
||||||
|
@ -96,7 +96,7 @@ jobs:
|
||||||
run: ./tools/ci/production-build
|
run: ./tools/ci/production-build
|
||||||
|
|
||||||
- name: Upload production build artifacts for install jobs
|
- name: Upload production build artifacts for install jobs
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp/production-build
|
path: /tmp/production-build
|
||||||
|
@ -164,7 +164,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download built production tarball
|
- name: Download built production tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -176,7 +176,7 @@ jobs:
|
||||||
# cache action to work. It is owned by root currently.
|
# cache action to work. It is owned by root currently.
|
||||||
sudo chmod -R 0777 /__w/_temp/
|
sudo chmod -R 0777 /__w/_temp/
|
||||||
|
|
||||||
# Since actions/download-artifact@v2 loses all the permissions
|
# Since actions/download-artifact@v4 loses all the permissions
|
||||||
# of the tarball uploaded by the upload artifact fix those.
|
# of the tarball uploaded by the upload artifact fix those.
|
||||||
chmod +x /tmp/production-upgrade-pg
|
chmod +x /tmp/production-upgrade-pg
|
||||||
chmod +x /tmp/production-pgroonga
|
chmod +x /tmp/production-pgroonga
|
||||||
|
@ -270,7 +270,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download built production tarball
|
- name: Download built production tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -282,7 +282,7 @@ jobs:
|
||||||
# cache action to work. It is owned by root currently.
|
# cache action to work. It is owned by root currently.
|
||||||
sudo chmod -R 0777 /__w/_temp/
|
sudo chmod -R 0777 /__w/_temp/
|
||||||
|
|
||||||
# Since actions/download-artifact@v2 loses all the permissions
|
# Since actions/download-artifact@v4 loses all the permissions
|
||||||
# of the tarball uploaded by the upload artifact fix those.
|
# of the tarball uploaded by the upload artifact fix those.
|
||||||
chmod +x /tmp/production-upgrade
|
chmod +x /tmp/production-upgrade
|
||||||
chmod +x /tmp/production-verify
|
chmod +x /tmp/production-verify
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
update-digitalocean-oneclick-app:
|
update-digitalocean-oneclick-app:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Update DigitalOcean one click app
|
- name: Update DigitalOcean one click app
|
||||||
env:
|
env:
|
||||||
DIGITALOCEAN_API_KEY: ${{ secrets.ONE_CLICK_ACTION_DIGITALOCEAN_API_KEY }}
|
DIGITALOCEAN_API_KEY: ${{ secrets.ONE_CLICK_ACTION_DIGITALOCEAN_API_KEY }}
|
||||||
|
|
|
@ -68,7 +68,7 @@ jobs:
|
||||||
HOME: /home/github/
|
HOME: /home/github/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Create cache directories
|
- name: Create cache directories
|
||||||
run: |
|
run: |
|
||||||
|
@ -77,20 +77,20 @@ jobs:
|
||||||
sudo chown -R github "${dirs[@]}"
|
sudo chown -R github "${dirs[@]}"
|
||||||
|
|
||||||
- name: Restore pnpm store
|
- name: Restore pnpm store
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /__w/.pnpm-store
|
path: /__w/.pnpm-store
|
||||||
key: v1-pnpm-store-${{ matrix.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
key: v1-pnpm-store-${{ matrix.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-venv-cache
|
path: /srv/zulip-venv-cache
|
||||||
key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }}
|
key: v1-venv-${{ matrix.os }}-${{ hashFiles('requirements/dev.txt') }}
|
||||||
restore-keys: v1-venv-${{ matrix.os }}
|
restore-keys: v1-venv-${{ matrix.os }}
|
||||||
|
|
||||||
- name: Restore emoji cache
|
- name: Restore emoji cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-emoji-cache
|
path: /srv/zulip-emoji-cache
|
||||||
key: v1-emoji-${{ matrix.os }}-${{ hashFiles('tools/setup/emoji/emoji_map.json', 'tools/setup/emoji/build_emoji', 'tools/setup/emoji/emoji_setup_utils.py', 'tools/setup/emoji/emoji_names.py', 'package.json') }}
|
key: v1-emoji-${{ matrix.os }}-${{ hashFiles('tools/setup/emoji/emoji_map.json', 'tools/setup/emoji/build_emoji', 'tools/setup/emoji/emoji_setup_utils.py', 'tools/setup/emoji/emoji_names.py', 'package.json') }}
|
||||||
|
@ -231,14 +231,15 @@ jobs:
|
||||||
# Only upload coverage when both frontend and backend
|
# Only upload coverage when both frontend and backend
|
||||||
# tests are run.
|
# tests are run.
|
||||||
if: ${{ matrix.include_frontend_tests }}
|
if: ${{ matrix.include_frontend_tests }}
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: var/coverage.xml,var/node-coverage/lcov.info
|
files: var/coverage.xml,var/node-coverage/lcov.info
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Store Puppeteer artifacts
|
- name: Store Puppeteer artifacts
|
||||||
# Upload these on failure, as well
|
# Upload these on failure, as well
|
||||||
if: ${{ always() && matrix.include_frontend_tests }}
|
if: ${{ always() && matrix.include_frontend_tests }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: puppeteer
|
name: puppeteer
|
||||||
path: ./var/puppeteer
|
path: ./var/puppeteer
|
||||||
|
|
Loading…
Reference in New Issue