2020-05-14 18:26:12 -04:00
|
|
|
name: Translations
|
|
|
|
|
2021-01-07 03:47:00 -05:00
|
|
|
on:
|
|
|
|
push:
|
2024-01-23 23:30:53 -05:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2021-01-07 03:47:00 -05:00
|
|
|
pull_request:
|
2021-01-21 19:10:17 -05:00
|
|
|
types: [synchronize, opened, reopened, ready_for_review]
|
2020-05-14 18:26:12 -04:00
|
|
|
|
2024-02-01 10:08:41 -05:00
|
|
|
# cancel previous workflow jobs for PRs
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-05-14 18:26:12 -04:00
|
|
|
jobs:
|
2020-09-10 16:12:00 -04:00
|
|
|
frontend-check:
|
2021-01-15 19:14:33 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2020-05-14 18:26:12 -04:00
|
|
|
steps:
|
2021-01-24 02:10:16 -05:00
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2024-02-01 13:56:33 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-01-24 02:10:16 -05:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
2021-09-25 01:26:35 -04:00
|
|
|
- name: Setup Node.js
|
2024-02-01 10:06:48 -05:00
|
|
|
uses: actions/setup-node@v4
|
2021-09-25 01:26:35 -04:00
|
|
|
with:
|
|
|
|
node-version: '16'
|
2020-12-08 18:27:08 -05:00
|
|
|
- name: Install dependencies
|
2021-01-04 07:16:07 -05:00
|
|
|
uses: ./.github/actions/cached-dependencies
|
2020-12-08 18:27:08 -05:00
|
|
|
with:
|
|
|
|
run: npm-install
|
|
|
|
- name: lint
|
|
|
|
working-directory: ./superset-frontend
|
|
|
|
run: |
|
|
|
|
npm run check-translation
|
2020-09-10 16:12:00 -04:00
|
|
|
|
|
|
|
babel-extract:
|
2021-01-15 19:14:33 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2020-09-10 16:12:00 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-05-10 13:21:56 -04:00
|
|
|
python-version: ["3.9"]
|
2020-09-10 16:12:00 -04:00
|
|
|
steps:
|
2021-01-24 02:10:16 -05:00
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2024-02-01 13:56:33 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-01-24 02:10:16 -05:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
2020-09-10 16:12:00 -04:00
|
|
|
- name: Setup Python
|
2024-02-01 13:20:24 -05:00
|
|
|
uses: actions/setup-python@v5
|
2020-09-10 16:12:00 -04:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
2021-01-04 07:16:07 -05:00
|
|
|
uses: ./.github/actions/cached-dependencies
|
2020-09-10 16:12:00 -04:00
|
|
|
with:
|
|
|
|
run: |
|
|
|
|
apt-get-install
|
|
|
|
pip-upgrade
|
2020-09-12 01:59:12 -04:00
|
|
|
pip install -r requirements/base.txt
|
2020-09-10 16:12:00 -04:00
|
|
|
- name: Test babel extraction
|
2021-12-08 03:36:57 -05:00
|
|
|
run: ./scripts/babel_update.sh
|