Merge pull request #54 from btat/update-actions

Add action to test deployment on PRs
This commit is contained in:
Billy Tat 2023-06-09 13:49:14 -07:00 committed by GitHub
commit 764660f054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Setup Docusaurus
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18
cache: yarn
- name: Build website
run: |

20
.github/workflows/test-deploy.yml vendored Normal file
View File

@ -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