diff --git a/.github/file-filters.yml b/.github/file-filters.yml index eca0223..c01c353 100644 --- a/.github/file-filters.yml +++ b/.github/file-filters.yml @@ -7,4 +7,7 @@ frontend-test-unit-code: &frontend-test-unit-code - '**/*' frontend-test-build-code: &frontend-test-build-code - - '**/*' \ No newline at end of file + - '**/*' + +frontend-test-build-docs: &frontend-test-build-docs + - '**/*.md' \ No newline at end of file diff --git a/.github/workflows/test.build.docs.yml b/.github/workflows/test.build.docs.yml new file mode 100644 index 0000000..e342708 --- /dev/null +++ b/.github/workflows/test.build.docs.yml @@ -0,0 +1,34 @@ +name: "test:build test docs" + +on: push + +jobs: + # only (but most important) job from this workflow required for pull requests + # check results serve as run conditions for all other jobs here + files-changed: + name: Detect File Changes - frontend-test-build-docs + runs-on: ubuntu-latest + outputs: + changes: ${{ steps.changes.outputs.frontend-test-build-docs }} + steps: + - uses: actions/checkout@v3.3.0 + + - name: Check for frontend file changes + uses: dorny/paths-filter@v2.11.1 + id: changes + with: + token: ${{ github.token }} + filters: .github/file-filters.yml + list-files: shell + + build: + if: needs.files-changed.outputs.changes == 'true' + name: Build Docs - Frontend + needs: files-changed + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Frontend | Build + run: npm install && npm run docs:build \ No newline at end of file