From feb21f18d22201b2e8a381155095d57308cd7ec2 Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Fri, 17 Nov 2023 15:00:35 +0100 Subject: [PATCH] Add basic GH workflow for website workspace This is an initial implementation of the CI process to check formatting in `website` workspace. Co-authored-by: Rafal Czajkowski --- .github/workflows/website.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/website.yaml diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml new file mode 100644 index 000000000..e1b62779d --- /dev/null +++ b/.github/workflows/website.yaml @@ -0,0 +1,32 @@ +name: Website + +on: + push: + branches: + - main + paths: + - "website/**" + pull_request: + +defaults: + run: + working-directory: ./website + +jobs: + website-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: "website/.nvmrc" + cache: "yarn" + cache-dependency-path: "website/yarn.lock" + + - name: Install Dependencies + run: yarn install --prefer-offline --frozen-lockfile + + - name: Format + run: yarn format