Skip to content

Commit

Permalink
chore: fix requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed Aug 29, 2024
1 parent fb7271e commit 714526d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
name: 'determine changes'
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.changed-files-yaml.outputs.src_any_changed }}
changes: ${{ steps.changed-files-yaml.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- name: Detect changed files
id: changed-files-yaml
uses: tj-actions/changed-files@v39
uses: tj-actions/changed-files@v45
with:
files_yaml: |
ci:
Expand All @@ -25,8 +25,10 @@ jobs:
- packages/formik/package.json
- packages/formik-native/src/**
- packages/formik-native/package.json
benchmark:
if: needs.detectChangedSourceFiles.outputs.changes == 'true'
needs: detectChangedSourceFiles
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,15 +38,6 @@ jobs:
cache: yarn
node-version-file: .nvmrc

- name: Detect changed files
id: changed-files-yaml
uses: tj-actions/changed-files@v39
with:
files_yaml: |
src:
- packages/formik/src/**
- packages/formik-native/src/**
- name: Install & build
run: |
node --version
Expand Down Expand Up @@ -78,7 +71,9 @@ jobs:
fail-threshold: 120%
# needed for commenting on PRs
github-token: ${{ secrets.GITHUB_TOKEN }}

interaction:
needs: detectChangedSourceFiles
if: needs.detectChangedSourceFiles.outputs.changes == 'true'
timeout-minutes: 10
runs-on: ubuntu-latest
Expand Down Expand Up @@ -118,7 +113,9 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 5

size:
needs: detectChangedSourceFiles
if: needs.detectChangedSourceFiles.outputs.changes == 'true'
runs-on: ubuntu-latest
steps:
Expand All @@ -129,7 +126,9 @@ jobs:
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
build-script: 'turbo run build --filter {./packages/*}...'

unit:
needs: detectChangedSourceFiles
if: needs.detectChangedSourceFiles.outputs.changes == 'true'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 714526d

Please sign in to comment.