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
|
|
|
|
|
|
|
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:
|
2020-03-06 20:40:54 +03:00
|
|
|
- uses: actions/checkout@v2
|
2021-04-05 22:39:15 +03:00
|
|
|
- uses: actions/setup-node@v2
|
2020-02-13 00:52:06 +03:00
|
|
|
with:
|
2022-04-26 13:20:26 +03:00
|
|
|
node-version: 14
|
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
|
2022-03-22 22:46:45 +03:00
|
|
|
- name: Audit prod NPM dependencies
|
|
|
|
run: npm audit --omit dev
|