-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 1.08 KB
/
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
37
# Simple workflow for deploying static content to GitHub Pages
name: Build
on: [pull_request]
jobs:
build:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
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 format
- name: Check the code style
run: yarn run lint
- name: Check the types
run: yarn check-types
- name: Build the project
run: yarn build