2020-02-13 00:52:06 +03:00
|
|
|
name: "infra"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-12-08 09:58:33 +03:00
|
|
|
- main
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-02-13 00:52:06 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-12-08 09:58:33 +03:00
|
|
|
- main
|
2020-04-22 05:20:19 +03:00
|
|
|
- release-*
|
2020-02-13 00:52:06 +03:00
|
|
|
|
2023-04-06 20:49:29 +03:00
|
|
|
env:
|
|
|
|
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
|
|
|
|
|
2020-02-13 00:52:06 +03:00
|
|
|
jobs:
|
|
|
|
doc-and-lint:
|
|
|
|
name: "docs & lint"
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-02-13 00:52:06 +03:00
|
|
|
steps:
|
2022-08-31 18:23:42 +03:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2020-02-13 00:52:06 +03:00
|
|
|
with:
|
2023-02-10 02:53:32 +03:00
|
|
|
node-version: 16
|
2022-04-26 18:52:10 +03:00
|
|
|
- run: npm i -g npm@8
|
2020-04-21 02:57:01 +03:00
|
|
|
- run: npm ci
|
2020-07-02 01:22:29 +03:00
|
|
|
- run: npm run build
|
2021-10-11 17:52:17 +03:00
|
|
|
- run: npx playwright install-deps
|
2022-01-24 22:25:24 +03:00
|
|
|
- run: npx playwright install
|
2020-02-13 00:52:06 +03:00
|
|
|
- run: npm run lint
|
2021-02-17 00:38:09 +03:00
|
|
|
- name: Verify clean tree
|
|
|
|
run: |
|
|
|
|
if [[ -n $(git status -s) ]]; then
|
|
|
|
echo "ERROR: tree is dirty after npm run build:"
|
|
|
|
git diff
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-07-11 00:40:28 +03:00
|
|
|
- name: Audit prod NPM dependencies
|
|
|
|
run: npm audit --omit dev
|
2023-07-24 23:27:44 +03:00
|
|
|
lint-snippets:
|
|
|
|
name: "Lint snippets"
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.11'
|
|
|
|
- uses: actions/setup-dotnet@v3
|
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
- run: npm ci
|
|
|
|
- run: pip install -r utils/doclint/linting-code-snippets/python/requirements.txt
|
|
|
|
- run: node utils/doclint/linting-code-snippets/cli.js
|