-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (34 loc) · 942 Bytes
/
main.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
name: Build
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Configure yarn caching
uses: actions/cache@v2
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/workflows/prettier.yml') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install dependencies
run: yarn install
- name: Format the code
run: yarn run prettier
- name: Check the code style
run: yarn run lint:eslint
- name: Check the types
run: yarn run check-types
- name: Build the project
run: yarn run build