chore: use jobs for artifact generation (#8864)

This commit is contained in:
jrandolf
2022-08-31 14:42:53 +02:00
committed by GitHub
parent 292216652b
commit eb6cea4f57
13 changed files with 439 additions and 114 deletions

View File

@@ -68,10 +68,15 @@ jobs:
run: npm run docs
- name: Check if autogenerated docs differ
run: |
if [[ $(git diff) ]]; then
echo "Please update the documentation by running 'npm run docs'"
diff_file=$(mktemp doc_diff_XXXXXX)
git diff --color > $diff_file
if [[ -s $diff_file ]]; then
echo "Please update the documentation by running 'npm run docs'. The following was the diff"
cat $diff_file
rm $diff_file
exit 1
fi
rm $diff_file
- name: Check if docs need to be deployed
id: needs_deploying
run: |
@@ -165,7 +170,7 @@ jobs:
if: ${{ matrix.spec.name == 'Linux' }}
run: sudo apt-get install xvfb
- name: Build
run: npm run build
run: npm run build:ci
- name: Test types
run: npm run test:types
# On Linux we run all Chrome tests without retries and Firefox tests with retries.
@@ -215,7 +220,7 @@ jobs:
ls .local-chromium
- name: Build
run: |
npm run build
npm run build:ci
docker/pack.sh
- name: Build docker image
working-directory: ./docker