chore: relocate stories
folder into lib
#3352
Workflow file for this run
This file contains 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: CI | |
on: push | |
jobs: | |
test: | |
name: Lint & Test | |
runs-on: ubuntu-latest | |
env: | |
TZ: Australia/Brisbane | |
CI: true | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
id: setups | |
run: |- | |
echo "::set-output name=yarn_cache::$(yarn cache dir)" | |
echo "::set-output name=node_version::$(jq -r '.volta.node' package.json)" | |
- name: Setup Node ${{ steps.setups.outputs.node_version }} | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ steps.setups.outputs.node_version }} | |
check-latest: true | |
- name: Yarn cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.setups.outputs.yarn_cache }} | |
key: | |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') | |
}}-node-${{ steps.setups.outputs.node_version }} | |
- run: yarn --immutable | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn test --no-cache --ci --coverage | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV }} | |
visual_test: | |
name: Visual changes | |
runs-on: ubuntu-latest | |
env: | |
TZ: Australia/Brisbane | |
CI: true | |
steps: | |
- uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: Setup environment | |
id: setups | |
run: |- | |
echo "::set-output name=yarn_cache::$(yarn cache dir)" | |
echo "::set-output name=node_version::$(jq -r '.volta.node' package.json)" | |
- name: Setup Node ${{ steps.setups.outputs.node_version }} | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ steps.setups.outputs.node_version }} | |
check-latest: true | |
- name: Yarn cache | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.setups.outputs.yarn_cache }} | |
key: | |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') | |
}}-node-${{ steps.setups.outputs.node_version }} | |
- run: yarn --immutable | |
- name: Chromatic | |
uses: chromaui/action@latest | |
with: | |
projectToken: ${{ secrets.CHROMATIC_APP_CODE }} | |
onlyChanged: true # enables TurboSnap behaviour | |
autoAcceptChanges: 'main' | |
exitZeroOnChanges: '!(main)' |