generated from john-d-pelingo/node-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (37 loc) · 990 Bytes
/
build-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
name: Build Pull Request
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
name: Test GitHub Action
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node 14
uses: actions/[email protected]
with:
node-version: 14
- name: Install dependencies with yarn
run: yarn install --frozen-lockfile
- name: Lint code
run: yarn lint
- name: Test types
run: yarn test:t
- name: Test application
run: yarn test
build-pr:
name: Build GitHub Action
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node 14
uses: actions/[email protected]
with:
node-version: 14
- name: Install dependencies with yarn
run: yarn install --frozen-lockfile
- name: Run build command
run: yarn build:pr