Skip to content

Commit

Permalink
Merge branch 'chore/speed-up-renovate-ci' into renovate/some-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
alixlahuec committed Sep 21, 2024
2 parents cf6ef1c + 68e23df commit 2c7036c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 45 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
commit-checks:
name: Lint, test, and build
runs-on: ubuntu-latest
env:
RUN_STORYBOOK: "!contains(github.ref, 'renovate/') || contains(github.ref, 'renovate/storybook')"

steps:
- name: Checkout code
Expand All @@ -35,7 +37,7 @@ jobs:

- name: Upload test reports
uses: dorny/test-reporter@v1
if: success() || failure()
if: "$RUN_STORYBOOK && (success() || failure())"
with:
name: Tests
path: reports/tests-junit.xml
Expand All @@ -59,7 +61,7 @@ jobs:
- name: Storybook CI
id: chromatic
uses: chromaui/action@v1
if: "!contains(github.ref, 'renovate/') || contains(github.ref, 'renovate/storybook')"
if: $RUN_STORYBOOK
with:
buildScriptName: "build-storybook"
exitOnceUploaded: true
Expand All @@ -68,7 +70,7 @@ jobs:
exitZeroOnChanges: true

- name: Storybook tests
if: "!contains(github.ref, 'renovate/') || contains(github.ref, 'renovate/storybook')"
if: $RUN_STORYBOOK
run: npm run ci:test-storybook
env:
TARGET_URL: "${{ steps.chromatic.outputs.storybookUrl }}"
Expand All @@ -77,7 +79,7 @@ jobs:

- name: Upload test reports
uses: dorny/test-reporter@v1
if: "!contains(github.ref, 'renovate/') || contains(github.ref, 'renovate/storybook')"
if: $RUN_STORYBOOK
with:
name: Storybook
path: reports/storybook-junit.xml
Expand All @@ -86,6 +88,7 @@ jobs:

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
if: $RUN_STORYBOOK
with:
directory: ./coverage/
verbose: true
Expand Down
Loading

0 comments on commit 2c7036c

Please sign in to comment.