Bump google-cloud-kms from 2.10.0 to 2.19.2 #102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy tests | |
on: | |
push: | |
branches: | |
- unstable | |
- hotfixes | |
- master | |
pull_request: | |
jobs: | |
pre_job: | |
name: Path match check | |
runs-on: ubuntu-latest | |
# Map a step output to a job output | |
outputs: | |
should_skip: ${{ steps.skip_check.outputs.should_skip }} | |
steps: | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@master | |
with: | |
github_token: ${{ github.token }} | |
paths: '["**.py", "requirements.txt", ".github/workflows/deploytest.yml", "**.vue", "**.js", "yarn.lock", "package.json"]' | |
build_assets: | |
name: Build frontend assets | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Cache Node.js modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
- name: Install dependencies | |
run: | | |
yarn --frozen-lockfile | |
npm rebuild node-sass | |
- name: Build frontend | |
run: yarn run build | |
make_messages: | |
name: Build all message files | |
needs: pre_job | |
if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: pip cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pyprod-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pyprod- | |
- name: Install pip-tools and python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pip-tools | |
pip-sync requirements.txt | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Cache Node.js modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
- name: Install node dependencies | |
run: | | |
yarn --frozen-lockfile | |
npm rebuild node-sass | |
- name: Install gettext | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y gettext | |
- name: Test Django makemessages | |
run: python contentcuration/manage.py makemessages --all |