Skip to content

Commit

Permalink
chore(ci): add GitHub action for showcase testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Nov 24, 2021
1 parent b31044d commit 0a4ce77
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/showcase-test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0a4ce77

Please sign in to comment.