mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: use jobs for artifact generation (#8864)
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user