enso/.github/workflows/docs.yml

58 lines
1.4 KiB
YAML
Raw Normal View History

2020-09-07 14:24:34 +03:00
name: Docs CI
on:
push:
2020-09-07 14:24:34 +03:00
branches: [main, "release/*"]
pull_request:
branches: ["*"]
env:
nodeVersion: 12.18.4
jobs:
2020-09-07 14:24:34 +03:00
check:
name: Docs Check
runs-on: ubuntu-latest
2020-09-07 14:24:34 +03:00
timeout-minutes: 10
strategy:
fail-fast: false
steps:
2020-09-07 14:24:34 +03:00
- name: Checkout Library Sources
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v1
2020-07-21 15:59:40 +03:00
with:
2020-09-07 14:24:34 +03:00
node-version: ${{ env.nodeVersion }}
- name: Install Prettier
run: npm install
- name: Check Docs
run: npx prettier --check .
changelog-check:
name: Changelog Check
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout Sources
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: ${{ env.nodeVersion }}
- name: Install Dependencies
shell: bash
working-directory: tools/ci/nightly
run: |
npm install
- name: Check If Changelog Was Modified
shell: bash
run: |
node tools/ci/check-changelog.js RELEASES.md ${{ github.event.pull_request.base.sha }}
- name: Verify That Changelog Format Is Correct
shell: bash
run: |
node tools/ci/nightly/extract-release-notes.js RELEASES.md release_notes.md