From 057e3f34da1549f2783475356ef08d6f78e90588 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Wed, 24 Nov 2021 18:25:49 +0800 Subject: [PATCH] chore(ci): add GitHub action for showcase testing (#6002) --- .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 0000000000..f163f30b74 --- /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