The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: github actions (#483)
Jérémy M8e319900d0bf
diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yamlindex 2c9bcd258cd..e95c8af4982 100644--- a/.github/workflows/ci-chromatic.yaml+++ b/.github/workflows/ci-chromatic.yaml@@ -15,6 +15,15 @@ jobs:- uses: actions/checkout@v3with:fetch-depth: 0+ ref: "refs/pull/${{ github.event.number }}/merge"+ - name: Check for redundant workflow run+ run: |+ HEAD_SHA=$(git rev-parse HEAD^)+ if [ "$HEAD_SHA" != "${{ github.event.pull_request.head.sha }}" ]; then+ echo "HEAD SHA and Pull Request HEAD SHA do not match, cancelling run"+ echo "GitHub has scheduled a newer workflow run already."+ exit 1+ fi- name: Setup Node.jsuses: actions/setup-node@v3with:diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yamlindex 5c4cf9eef41..06f52f7accd 100644--- a/.github/workflows/ci-docs.yaml+++ b/.github/workflows/ci-docs.yaml@@ -9,6 +9,16 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3+ with:+ ref: "refs/pull/${{ github.event.number }}/merge"+ - name: Check for redundant workflow run+ run: |+ HEAD_SHA=$(git rev-parse HEAD^)+ if [ "$HEAD_SHA" != "${{ github.event.pull_request.head.sha }}" ]; then+ echo "HEAD SHA and Pull Request HEAD SHA do not match, cancelling run"+ echo "GitHub has scheduled a newer workflow run already."+ exit 1+ fi- name: Setup Node.jsuses: actions/setup-node@v3with:diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yamlindex ec09467340f..aad3356845b 100644--- a/.github/workflows/ci-front.yaml+++ b/.github/workflows/ci-front.yaml@@ -12,6 +12,16 @@ jobs:REACT_APP_AUTH_URL: http://127.0.0.1:3000/authsteps:- uses: actions/checkout@v3+ with:+ ref: "refs/pull/${{ github.event.number }}/merge"+ - name: Check for redundant workflow run+ run: |+ HEAD_SHA=$(git rev-parse HEAD^)+ if [ "$HEAD_SHA" != "${{ github.event.pull_request.head.sha }}" ]; then+ echo "HEAD SHA and Pull Request HEAD SHA do not match, cancelling run"+ echo "GitHub has scheduled a newer workflow run already."+ exit 1+ fi- name: Setup Node.jsuses: actions/setup-node@v3with:diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yamlindex 6ef78dc143e..fb34a93a2cc 100644--- a/.github/workflows/ci-server.yaml+++ b/.github/workflows/ci-server.yaml@@ -9,6 +9,16 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3+ with:+ ref: "refs/pull/${{ github.event.number }}/merge"+ - name: Check for redundant workflow run+ run: |+ HEAD_SHA=$(git rev-parse HEAD^)+ if [ "$HEAD_SHA" != "${{ github.event.pull_request.head.sha }}" ]; then+ echo "HEAD SHA and Pull Request HEAD SHA do not match, cancelling run"+ echo "GitHub has scheduled a newer workflow run already."+ exit 1+ fi- name: Setup Node.jsuses: actions/setup-node@v3with:diff --git a/front/src/modules/ui/components/buttons/__stories__/Button.stories.tsx b/front/src/modules/ui/components/buttons/__stories__/Button.stories.tsxindex f5afbebe8f0..18aec7712b5 100644--- a/front/src/modules/ui/components/buttons/__stories__/Button.stories.tsx+++ b/front/src/modules/ui/components/buttons/__stories__/Button.stories.tsx@@ -1,5 +1,5 @@import styled from '@emotion/styled';-import { boolean, select, text, withKnobs } from '@storybook/addon-knobs';+import { text, withKnobs } from '@storybook/addon-knobs';import { expect, jest } from '@storybook/jest';import type { Meta, StoryObj } from '@storybook/react';import { userEvent, within } from '@storybook/testing-library';