-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.27 KB
/
ci-docs.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: 🔄ci-docs
on:
push:
paths:
- "**/*"
pull_request:
paths:
- "**/*"
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
name: Validate
steps:
- uses: actions/checkout@v3
- name: Cache Yarn Unplugged
uses: actions/cache@v3
id: cache_yarn_unplugged
env:
cache-name: cache-yarn-unplugged
with:
path: ${{ github.workspace }}/.yarn/unplugged
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- if: steps.cache_yarn_unplugged.outputs.cache-hit != 'true'
name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Validate
run: yarn run validate
send-slack:
runs-on: ubuntu-latest
needs: validate
if: ${{ always() }}
steps:
- name: Send Slack
uses: dogu-team/[email protected]
with:
template: "CI"
slack-channel-id: "C03PL9TC44Q"
result-status: ${{ needs.validate.result }}
ignore-notify: ${{ needs.validate.result == 'success' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}