-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 902 Bytes
/
ci.yml
File metadata and controls
37 lines (33 loc) · 902 Bytes
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
name: CI
on: [push]
jobs:
commitlint:
name: Commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Lint Commit Messages
uses: wagoid/commitlint-github-action@v5
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 🔧 Set Node.js 18.14.0
uses: actions/setup-node@v3
with:
node-version: 18.14.0
- name: 📦 Install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: 🔍 Run linter
uses: borales/actions-yarn@v4
with:
cmd: lint # will run `yarn lint` command
- name: 🔍 Run Unit Tests
uses: borales/actions-yarn@v4
with:
cmd: test:ci # will run `yarn test:ci` command