-
-
Notifications
You must be signed in to change notification settings - Fork 41
35 lines (33 loc) · 931 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Check
on: [pull_request]
jobs:
check:
name: documents updated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: puppeteer
repository: puppeteer/puppeteer
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Check puppeteer.api.json is updated
run: |
cd puppeteer
git checkout puppeteer-core-v$(cat ../development/DOCS_VERSION)
npm install && npm run build
cd ../
cp puppeteer/docs/puppeteer.api.json development/puppeteer.api.json
rm -rf puppeteer
git diff --exit-code
- name: Check api_coverage doc is updated
run: |
bundle exec ruby development/generate_api_coverage.rb
git diff --exit-code