mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
build storybook workflow, adjust docs workflow & filefilter
This commit is contained in:
parent
32de4850c9
commit
e295db2e09
6
.github/file-filters.yml
vendored
6
.github/file-filters.yml
vendored
@ -10,4 +10,8 @@ frontend-test-build-code: &frontend-test-build-code
|
|||||||
- '**/*'
|
- '**/*'
|
||||||
|
|
||||||
frontend-test-build-docs: &frontend-test-build-docs
|
frontend-test-build-docs: &frontend-test-build-docs
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
|
- '.vuepress/'
|
||||||
|
|
||||||
|
frontend-test-build-storybook: &frontend-test-build-storybook
|
||||||
|
- '**/*'
|
||||||
@ -30,5 +30,5 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Frontend | Build
|
- name: Frontend | Build Docs
|
||||||
run: npm install && npm run docs:build
|
run: npm install && npm run docs:build
|
||||||
34
.github/workflows/frontend.test.build.storybook.yml
vendored
Normal file
34
.github/workflows/frontend.test.build.storybook.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
name: "test:build test code"
|
||||||
|
|
||||||
|
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-storybook
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes: ${{ steps.changes.outputs.frontend-test-build-storybook }}
|
||||||
|
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
|
||||||
|
|
||||||
|
storybook:
|
||||||
|
if: needs.files-changed.outputs.changes == 'true'
|
||||||
|
name: Build Storybook - Frontend
|
||||||
|
needs: files-changed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Frontend | Build Storybook
|
||||||
|
run: npm install && npm run storybook:build
|
||||||
Loading…
x
Reference in New Issue
Block a user