-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (44 loc) · 1.12 KB
/
ci.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
48
49
50
51
name: CI
on:
pull_request:
branches:
- '**'
env:
PNPM_CACHE_FOLDER: .pnpm-store
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest
steps:
# env stuff
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: node - setup
uses: actions/setup-node@v2
with:
node-version: 14.x
# pnpm stuff
- name: pnpm — install
run: npm i pnpm@latest -g
- name: pnpm - config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: pnpm - output bin stubs
run: mkdir ./packages/presta/dist && echo "#! /usr/bin/env node" > ./packages/presta/bin.js
- name: pnpm - install
run: pnpm install
# build
- name: lint
run: pnpm lint
- name: build
run: pnpm build
- name: typecheck
run: pnpm typecheck
- name: test
run: pnpm test
# - name: coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}