forked from nanos-world/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1003 Bytes
/
Copy pathtest-deploy.yml
File metadata and controls
37 lines (31 loc) · 1003 Bytes
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
name: Test deployment
on:
pull_request:
branches:
- master
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: nschloe/action-cached-lfs-checkout@v1
with:
fetch-depth: 0
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Preprocess API
run: yarn preprocess-api
# - name: Download Crowdin
# env:
# CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
# run: yarn crowdin download
- name: Test build website
run: $env:BUILD_EN_ONLY="true"; yarn build