-
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 1.08 KB
/
e2e.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
name: E2E Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
if: github.actor != 'eemoji-bot'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install eemoji
run: pnpm i --ignore-scripts
- name: Build eemoji
run: pnpm run build
- name: Setup eemoji
run: pnpm run postinstall
- name: Set git bot
run: |
git config --global user.email "eemoji-bot@users.noreply.github.com"
git config --global user.name "eemoji-bot"
- name: Make a commit with a keyword
run: 'git commit --allow-empty -m ''test: eemoji'''
- name: Check the commit message for emoji
run: git log -1 --pretty=%B | grep -q "👍"