mirror of https://github.com/rancher/rke1-docs.git
Merge pull request #54 from btat/update-actions
Add action to test deployment on PRs
This commit is contained in:
commit
764660f054
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- name: Setup Docusaurus
|
- name: Setup Docusaurus
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18
|
||||||
cache: yarn
|
cache: yarn
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: Test deployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-deploy:
|
||||||
|
name: Test deployment
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: yarn
|
||||||
|
- name: Test build
|
||||||
|
run: |
|
||||||
|
yarn install --frozen-lockfile
|
||||||
|
yarn build
|
||||||
Loading…
Reference in New Issue