Add avatar/header alt text to list of changes now in vanilla Mastodon #328
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Chromatic' | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches-ignore: | |
| - renovate/* | |
| - stable-* | |
| jobs: | |
| pathcheck: | |
| name: Check for relevant changes | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| outputs: | |
| changed: ${{ steps.filter.outputs.src }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3 | |
| id: filter | |
| with: | |
| filters: | | |
| src: | |
| - 'package.json' | |
| - 'yarn.lock' | |
| - '**/*.js' | |
| - '**/*.jsx' | |
| - '**/*.ts' | |
| - '**/*.tsx' | |
| - '**/*.css' | |
| - '**/*.scss' | |
| - '.github/workflows/chromatic.yml' | |
| chromatic: | |
| name: Run Chromatic | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| needs: pathcheck | |
| if: github.repository == 'mastodon/mastodon' && needs.pathcheck.outputs.changed == 'true' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Javascript environment | |
| uses: ./.github/actions/setup-javascript | |
| - name: Build Storybook | |
| run: yarn build-storybook | |
| - name: Run Chromatic | |
| uses: chromaui/action@7804f34e4e59c0d9b3c856848f46ad96d7897429 # v17 | |
| with: | |
| projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
| zip: true | |
| storybookBuildDir: 'storybook-static' | |
| exitOnceUploaded: true # Exit immediately after upload | |
| autoAcceptChanges: 'main' # Auto-accept changes on main branch only |