Fix CI not running on main
This commit is contained in:
2
.github/workflows/ci-chrome-extension.yaml
vendored
2
.github/workflows/ci-chrome-extension.yaml
vendored
@ -22,6 +22,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
access_token: ${{ github.token }}
|
access_token: ${{ github.token }}
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
|
|||||||
11
.github/workflows/ci-front.yaml
vendored
11
.github/workflows/ci-front.yaml
vendored
@ -23,6 +23,8 @@ jobs:
|
|||||||
access_token: ${{ github.token }}
|
access_token: ${{ github.token }}
|
||||||
- name: Fetch local actions
|
- name: Fetch local actions
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
@ -38,7 +40,7 @@ jobs:
|
|||||||
run: echo "No relevant changes. Skipping CI."
|
run: echo "No relevant changes. Skipping CI."
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
uses: ./.github/workflows/actions/yarn-install
|
uses: ./.github/workflows/actions/yarn-install
|
||||||
- name: Diagnostic disk space issue
|
- name: Diagnostic disk space issue
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
@ -56,7 +58,6 @@ jobs:
|
|||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
run: npx nx storybook:build twenty-front
|
run: npx nx storybook:build twenty-front
|
||||||
front-sb-test:
|
front-sb-test:
|
||||||
|
|
||||||
runs-on: ci-8-cores
|
runs-on: ci-8-cores
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
needs: front-sb-build
|
needs: front-sb-build
|
||||||
@ -69,6 +70,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Fetch local actions
|
- name: Fetch local actions
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v11
|
uses: tj-actions/changed-files@v11
|
||||||
@ -149,6 +152,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Fetch local actions
|
- name: Fetch local actions
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v11
|
uses: tj-actions/changed-files@v11
|
||||||
@ -242,7 +247,7 @@ jobs:
|
|||||||
run: echo "No relevant changes. Skipping CI."
|
run: echo "No relevant changes. Skipping CI."
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
uses: ./.github/workflows/actions/yarn-install
|
uses: ./.github/workflows/actions/yarn-install
|
||||||
- name: Front / Restore ${{ matrix.task }} task cache
|
- name: Front / Restore ${{ matrix.task }} task cache
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
|
|||||||
2
.github/workflows/ci-website.yaml
vendored
2
.github/workflows/ci-website.yaml
vendored
@ -24,6 +24,8 @@ jobs:
|
|||||||
- 5432:5432
|
- 5432:5432
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Check for changed files
|
- name: Check for changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v11
|
uses: tj-actions/changed-files@v11
|
||||||
|
|||||||
Reference in New Issue
Block a user