mirror of https://github.com/zulip/zulip.git
ci: Update GitHub Actions dependencies.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
4391234eb3
commit
27fa91066c
|
@ -17,15 +17,15 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v2
|
||||||
|
|
||||||
# Override language selection by uncommenting this and choosing your languages
|
# Override language selection by uncommenting this and choosing your languages
|
||||||
# with:
|
# with:
|
||||||
# languages: go, javascript, csharp, python, cpp, java
|
# languages: go, javascript, csharp, python, cpp, java
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v2
|
||||||
|
|
|
@ -58,7 +58,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@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create cache directories
|
- name: Create cache directories
|
||||||
run: |
|
run: |
|
||||||
|
@ -67,21 +67,21 @@ jobs:
|
||||||
sudo chown -R github "${dirs[@]}"
|
sudo chown -R github "${dirs[@]}"
|
||||||
|
|
||||||
- name: Restore node_modules cache
|
- name: Restore node_modules cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-npm-cache
|
path: /srv/zulip-npm-cache
|
||||||
key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
|
key: v1-yarn-deps-focal-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
|
||||||
restore-keys: v1-yarn-deps-focal
|
restore-keys: v1-yarn-deps-focal
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
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@v2
|
uses: actions/cache@v3
|
||||||
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') }}
|
||||||
|
@ -91,7 +91,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@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp/production-build
|
path: /tmp/production-build
|
||||||
|
@ -136,7 +136,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download built production tarball
|
- name: Download built production tarball
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
@ -163,7 +163,7 @@ jobs:
|
||||||
sudo chown -R github "${dirs[@]}"
|
sudo chown -R github "${dirs[@]}"
|
||||||
|
|
||||||
- name: Restore node_modules cache
|
- name: Restore node_modules cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-npm-cache
|
path: /srv/zulip-npm-cache
|
||||||
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }}
|
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('/tmp/package.json') }}-${{ hashFiles('/tmp/yarn.lock') }}
|
||||||
|
@ -231,7 +231,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download built production tarball
|
- name: Download built production tarball
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: production-tarball
|
name: production-tarball
|
||||||
path: /tmp
|
path: /tmp
|
||||||
|
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
update-digitalocean-oneclick-app:
|
update-digitalocean-oneclick-app:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- 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 }}
|
||||||
|
|
|
@ -52,7 +52,7 @@ jobs:
|
||||||
HOME: /home/github/
|
HOME: /home/github/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Create cache directories
|
- name: Create cache directories
|
||||||
run: |
|
run: |
|
||||||
|
@ -61,21 +61,21 @@ jobs:
|
||||||
sudo chown -R github "${dirs[@]}"
|
sudo chown -R github "${dirs[@]}"
|
||||||
|
|
||||||
- name: Restore node_modules cache
|
- name: Restore node_modules cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-npm-cache
|
path: /srv/zulip-npm-cache
|
||||||
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
|
key: v1-yarn-deps-${{ matrix.os }}-${{ hashFiles('package.json') }}-${{ hashFiles('yarn.lock') }}
|
||||||
restore-keys: v1-yarn-deps-${{ matrix.os }}
|
restore-keys: v1-yarn-deps-${{ matrix.os }}
|
||||||
|
|
||||||
- name: Restore python cache
|
- name: Restore python cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
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@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: /srv/zulip-emoji-cache
|
path: /srv/zulip-emoji-cache
|
||||||
key: v1-emoji-${{ matrix.os }}-${{ 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-${{ matrix.os }}-${{ 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') }}
|
||||||
|
@ -209,14 +209,14 @@ 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@v2
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
files: var/coverage.xml,var/node-coverage/lcov.info
|
files: var/coverage.xml,var/node-coverage/lcov.info
|
||||||
|
|
||||||
- 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@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: puppeteer
|
name: puppeteer
|
||||||
path: ./var/puppeteer
|
path: ./var/puppeteer
|
||||||
|
|
Loading…
Reference in New Issue