Skip to content

Commit

Permalink
Create test-deploy.yml (#161)
Browse files Browse the repository at this point in the history
* Create test-deploy.yml

Adding gh action workflow that will be triggered for every PR if the changes happen in website directory.

Note: The code changes outside of website directory on main branch won't go through this check.

The changes will be tested with `yarn build` command to make sure the changes don't break the existing docs.

* Update and rename test-deploy.yml to site-test.yml

* Rename file, update refs and use cache from setup-node

* Test commit
  • Loading branch information
sagarlakshmipathy authored Nov 8, 2023
1 parent 28ba0c7 commit a3abc20
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/site-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Site Build

on:
pull_request:
branches:
- main
paths:
- '.github/workflows/site-build.yml'
- 'website/**'

jobs:
site-build:
name: Site Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ./website/package-lock.json

- run: npm install --frozen-lockfile
- run: npm run build

0 comments on commit a3abc20

Please sign in to comment.