From 0a4ce777a27e230a1d6f21c9df7911bb68c73c4e Mon Sep 17 00:00:00 2001 From: Josh-Cena Date: Wed, 24 Nov 2021 18:17:03 +0800 Subject: [PATCH] chore(ci): add GitHub action for showcase testing --- .github/workflows/showcase-test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/showcase-test.yml diff --git a/.github/workflows/showcase-test.yml b/.github/workflows/showcase-test.yml new file mode 100644 index 000000000000..f163f30b749e --- /dev/null +++ b/.github/workflows/showcase-test.yml @@ -0,0 +1,26 @@ +name: Showcase Tests + +on: + pull_request: + branches: + - main + paths: + - website/src/data/** + +jobs: + validate-config: + name: Validate Showcase Config + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node }} + cache: yarn + - name: Installation + run: yarn + - name: Test + run: yarn test website/src/data/__tests__/user.test.ts + # TODO another job to optimize the images, see https://github.com/facebook/docusaurus/issues/5980