-
Notifications
You must be signed in to change notification settings - Fork 359
40 lines (37 loc) · 1.04 KB
/
docs_test.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
36
37
38
39
40
name: Docs Tests
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- 'docs/**'
- '.github/workflows/docs_test.yml'
push:
branches: [ main ]
paths:
- 'docs/**'
- '.github/workflows/docs_test.yml'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
Test-Docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare setup
run: cp -a .ruby-version docs/v3/.ruby-version
- uses: ./.github/workflows/composite/setup
with:
WORKING_DIRECTORY: docs/v3
- name: Run docs tests
run: |
bundle config set --local without 'development'
bundle install
bundle exec rake check_doc_links
- uses: ravsamhq/notify-slack-action@v1.1
if: github.event_name == 'push'
with:
status: ${{ job.status }}
notify_when: 'failure' # default is 'success,failure,warnings'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required