π synced file(s) with nebari-dev/nebari #1273
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Website | |
on: | |
pull_request: | |
branches: ["*"] | |
jobs: | |
publish: | |
name: Test Website | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./docs | |
steps: | |
- name: Check out repository ποΈ | |
uses: actions/checkout@v3 | |
- name: Get yarn cache directory path πͺ | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache dependencies π§ͺ | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies π¦ | |
run: yarn install | |
- name: Lint π | |
run: yarn run lint | |
- name: Format π₯ | |
run: yarn run format | |
- name: Build site π¨ | |
run: yarn run build |