-
Notifications
You must be signed in to change notification settings - Fork 32
64 lines (52 loc) · 1.72 KB
/
test.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
53
54
55
56
57
58
59
60
61
62
63
64
name: PR Build Test
on:
pull_request:
branches:
- master
env:
DO_NOT_THROW_ON_BROKEN_LINKS: 'true'
jobs:
pr-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
# - name: Checkout Taichi main repo
# uses: actions/checkout@v2
# with:
# repository: taichi-dev/taichi
# path: source
# - name: Checkout Taichi Autoapi Gen
# uses: actions/checkout@v2
# with:
# repository: taichi-dev/docstring-gen
# path: docstring-gen
# - name: Install Dependences
# run: sudo apt-get install -y jq
# - name: Set Env
# run: |
# echo "TAICHI_PATH=${GITHUB_WORKSPACE}/source/python/taichi" >> $GITHUB_ENV
# echo "TAICHI_MAIN=${GITHUB_WORKSPACE}/source" >> $GITHUB_ENV
# echo "TAICHI_WEBSITE=${GITHUB_WORKSPACE}" >> $GITHUB_ENV
# - name: Export Env
# run: |
# export TAICHI_PATH=${{ env.TAICHI_PATH }}
# export TAICHI_WEBSITE=${{ env.TAICHI_WEBSITE }}
# export TAICHI_MAIN=${{ env.TAICHI_MAIN }}
# - name: Sync and stage changes
# run: |
# cd $TAICHI_PATH && git fetch --tags
# cd $TAICHI_WEBSITE/website && ./sync_docs.sh
- name: Cache node_modules
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install and Build
run: yarn --cwd=website install && yarn --cwd=website build