This repository was archived by the owner on Apr 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (53 loc) · 1.61 KB
/
ci.yml
File metadata and controls
65 lines (53 loc) · 1.61 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Install `lib` dependencies 📦
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: Install `example` dependencies 📦
uses: bahmutov/npm-install@v1
with:
working-directory: example
- name: Run tests 🧪
run: npm run test:ci
env:
CI: true
- name: Coveralls 📈
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: Unit
- name: Lint source code 🧹
run: npm run lint
- name: Build `lib` 🏗
run: npm run build
# - name: Build `example` 🏗
# run: cd example && yarn build
# env:
# SKIP_PREFLIGHT_CHECK: true
# - name: Deploy to GitHub Pages 🚀
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./example/build
# - name: Semantic Release 🚀
# uses: cycjimmy/semantic-release-action@v2
# with:
# dry_run: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Release published 🚀
# if: steps.semantic.outputs.new_release_published == 'true'
# run: |
# echo ${{ steps.semantic.outputs.new_release_version }}