-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 760 Bytes
/
Copy pathbuild.yml
File metadata and controls
35 lines (29 loc) · 760 Bytes
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: Build
on:
- pull_request
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: creyD/prettier_action@v3.3
with:
prettier_options: --write **/*.{ts,js,css,json,md}
commit_message: "style: prettified it for you :zap:"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn --pure-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test
env:
CI: true
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}