-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (32 loc) · 852 Bytes
/
Copy pathpull_request.yml
File metadata and controls
36 lines (32 loc) · 852 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
name: pull-request
on:
pull_request:
types: [opened, synchronize, edited]
jobs:
title:
name: Ensure that title uses gitmoji
runs-on: ubuntu-latest
steps:
- uses: paralenz/actions/gitmoji@v2.1.1
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache dependencies
id: cache-deps
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts
- name: Build
run: yarn build
- name: Linting
run: yarn lint
- name: Testing
run: yarn test