-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (41 loc) · 1.05 KB
/
blog-pr.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
52
53
54
55
56
57
58
59
60
name: 'Blog pull request'
on:
pull_request:
branches: [ master ]
paths:
- 'apps/blog/**'
- '.docker/Blog_**'
- '.github/workflows/blog-**'
- 'yarn.lock'
env:
NODE_OPTIONS: --max-old-space-size=4096
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@main
- uses: ./.github/actions/prepare-nodejs
name: Prepare Node.js
- name: Lint code
run: yarn blog:lint
tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@main
- uses: ./.github/actions/prepare-nodejs
name: Prepare Node.js
- name: Run tests
run: yarn blog:test:ci
tsc:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@main
- uses: ./.github/actions/prepare-nodejs
name: Prepare Node.js
- name: Generate articles
run: yarn workspace @memebattle/blog run generate
- name: TS check
run: yarn workspace @memebattle/blog run ts-check