-
Notifications
You must be signed in to change notification settings - Fork 98
52 lines (40 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
push:
branches: [master]
jobs:
build:
services:
couchbase:
image: couchbase/server-sandbox:7.1.3
ports:
- 8091-8094:8091-8094
- 11210:11210
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
node_version: [ '16' ]
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Build
run: yarn build
- name: Test
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
- name: Create .env file
uses: SpicyPizza/create-envfile@v1.3.0
with:
envKey_ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
envKey_ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
directory: docusaurus/
- name: Generate docs
run: yarn docs
- name: Publish docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs