-
Notifications
You must be signed in to change notification settings - Fork 25
35 lines (33 loc) · 1.18 KB
/
ci-build.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
name: Run Checks and Build
on: pull_request
jobs:
check-commit-message:
name: Check Commit Message Formatting
runs-on: ubuntu-latest
steps:
- name: Check Commits Has Stand With Ukraine Message
uses: gsactions/commit-message-checker@v1
with:
pattern: '(:ukraine: #StandWithUkraine\s.*)'
flags: 'gm'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}
error: 'Commit messages must conform to `:ukraine: #StandWithUkraine [description in sentence case]` formatting.'
run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
name: Lint, Test, and Build on Node.js ${{ matrix.node-version }}
steps:
- uses: actions/checkout@master
- name: Set Up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies on Node ${{ matrix.node-version }}
run: npm install
- name: Check Linter on Node ${{ matrix.node-version }}
run: npm next lint
- name: Build on Node ${{ matrix.node-version }}
run: npm run build