mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](https://github.com/dorny/paths-filter/compare/v3.0.0...v3.0.1) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: "frontend:test:build test storybook"
|
|
|
|
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@v4
|
|
|
|
- name: Check for frontend file changes
|
|
uses: dorny/paths-filter@v3.0.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
|
|
env:
|
|
WORKING_DIRECTORY: ./frontend
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Frontend | Build Storybook
|
|
run: npm install && npm run storybook:build
|
|
working-directory: ${{env.WORKING_DIRECTORY}} |