-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitmoji.yml
31 lines (25 loc) · 912 Bytes
/
gitmoji.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
name: Lint Gitmoji Messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
cache-dependency-path: '**/yarn.lock'
- name: 📦 Install dependencies
run: yarn install --immutable
# https://github.com/arvinxx/gitmoji-commit-workflow/tree/master/packages/commitlint-plugin#fetch-error
- name: 📦 fetch gitmoji JSON
run: |
curl https://raw.githubusercontent.com/carloscuesta/gitmoji/master/src/data/gitmojis.json > node_modules/commitlint-plugin-gitmoji/lib/gitmojis.json
- uses: wagoid/commitlint-github-action@v4
env:
NODE_PATH: ${{ github.workspace }}/node_modules