-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (46 loc) · 1.51 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
52
53
54
55
56
57
58
59
60
name: CI
on: pull_request
jobs:
local-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "13.x"
- run: yarn
- run: yarn docs-sync validate-against-en
site-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: "13.x"
# Clone this PR, and setup the deps
- uses: actions/checkout@v1
- run: yarn
# Clone the TS website, basically:
# git clone https://github.com/microsoft/TypeScript-Website website
- name: Checkout tools repo
uses: actions/checkout@v2
with:
repository: microsoft/TypeScript-Website
path: website
# Both the microsoft/TypeScript-Website & 1 - don't really need to be there, but
# this migrates the translated docs into the website
- run: yarn docs-sync pull microsoft/TypeScript-Website 1 --from-cwd . --to-cwd website
# Get dependencies for building the ebooks
- run: sudo apt-get update
- run: sudo apt install calibre
- run: yarn install
env:
YARN_CHECKSUM_BEHAVIOR: ignore
working-directory: ./website
# Verify the website build
- run: yarn bootstrap
working-directory: ./website
- run: yarn workspace typescriptlang-org build
working-directory: ./website
# # Verify the website build
# - run: yarn test
# working-directory: ./website