-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.1 KB
/
test-deployment.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
name: Test deployment
on:
pull_request_target:
types:
- opened
branches:
- main
# 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:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: 18.x
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test documentation build
env:
URL: ${{ secrets.URL }}
BASE_PATH: docs/
SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
ALGOLIASEARCH_API_KEY: ${{ secrets.ALGOLIASEARCH_API_KEY }}
ALGOLIASEARCH_APPLICATION_ID: ${{ secrets.ALGOLIASEARCH_APPLICATION_ID }}
ALGOLIASEARCH_INDEX_NAME: ${{ secrets.ALGOLIASEARCH_INDEX_NAME }}
run: yarn build