-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (36 loc) · 983 Bytes
/
workflow.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
name: Workflow
on:
push:
branches:
- main
- '[0-9]+.x'
jobs:
build:
name: Lint, format, test and build
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn
- name: Install dependencies 📦️
run: yarn install --immutable
- name: Lint 💅
run: yarn lint
- name: Format 🔍
run: yarn format:check
- name: Test 🧪
run: yarn test
- name: Build 🔨
run: yarn build
- name: Prepare release PR, if needed 📝
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.BJERKBOT_GITHUB_TOKEN }}
release-type: node
package-name: nestjs-oso
- name: Upload coverage to Codecov 📈
uses: codecov/codecov-action@v3