-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 08-10-formbuilderfiel…
…d_and_bookingfields_tests
- Loading branch information
Showing
668 changed files
with
26,342 additions
and
11,624 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Atoms production Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Build atoms | ||
permissions: | ||
contents: read | ||
runs-on: buildjet-4vcpu-ubuntu-2204 | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/dangerous-git-checkout | ||
- uses: ./.github/actions/yarn-install | ||
- name: Cache atoms production build | ||
uses: buildjet/cache@v4 | ||
id: cache-atoms-build | ||
env: | ||
cache-name: atoms-build | ||
key-1: ${{ hashFiles('yarn.lock') }} | ||
key-2: ${{ hashFiles('packages/platform/atoms/**.[jt]s', 'packages/platform/atoms/**.[jt]sx', '!**/node_modules') }} | ||
key-3: ${{ github.event.pull_request.number || github.ref }} | ||
# Ensures production-build.yml will always be fresh | ||
key-4: ${{ github.sha }} | ||
with: | ||
path: | | ||
**/dist/** | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}-${{ env.key-4 }} | ||
- run: | | ||
export NODE_OPTIONS="--max_old_space_size=8192" | ||
if [ ${{ steps.cache-atoms-build.outputs.cache-hit }} == 'true' ]; then | ||
echo "Cache hit for atoms build. Skipping build." | ||
else | ||
rm -rf packages/platform/atoms/node_modules | ||
yarn install | ||
yarn workspace @calcom/atoms run build | ||
fi | ||
shell: bash |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Delete | ||
|
||
on: | ||
delete: | ||
branches-ignore: [main, gh-pages] | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
# ensures that currently running Playwright workflow of deleted branch gets cancelled | ||
concurrency: | ||
group: ${{ github.event.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
delete_reports: | ||
name: Delete Reports | ||
runs-on: ubuntu-latest | ||
env: | ||
# Contains all reports for deleted branch | ||
BRANCH_REPORTS_DIR: reports/${{ github.event.ref }} | ||
steps: | ||
- name: Checkout GitHub Pages Branch | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: calcom/test-results | ||
ref: gh-pages | ||
token: ${{ secrets.GH_ACCESS_TOKEN }} | ||
- name: Set Git User | ||
# see: https://github.com/actions/checkout/issues/13#issuecomment-724415212 | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- name: Check for workflow reports | ||
run: | | ||
if [ -z "$(ls -A $BRANCH_REPORTS_DIR)" ]; then | ||
echo "BRANCH_REPORTS_EXIST="false"" >> $GITHUB_ENV | ||
else | ||
echo "BRANCH_REPORTS_EXIST="true"" >> $GITHUB_ENV | ||
fi | ||
- name: Delete reports from repo for branch | ||
if: ${{ env.BRANCH_REPORTS_EXIST == 'true' }} | ||
timeout-minutes: 3 | ||
run: | | ||
cd $BRANCH_REPORTS_DIR/.. | ||
rm -rf ${{ github.event.ref }} | ||
git add . | ||
git commit -m "workflow: remove all reports for branch ${{ github.event.ref }}" | ||
while true; do | ||
git pull --rebase | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to rebase. Please review manually." | ||
exit 1 | ||
fi | ||
git push | ||
if [ $? -eq 0 ]; then | ||
echo "Successfully pushed HTML reports to repo." | ||
exit 0 | ||
fi | ||
done |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# https://playwright.dev/docs/test-sharding#merging-reports-from-multiple-shards | ||
on: | ||
workflow_call: | ||
jobs: | ||
merge-reports: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/dangerous-git-checkout | ||
- uses: ./.github/actions/yarn-install | ||
- uses: ./.github/actions/yarn-playwright-install | ||
- name: Download blob reports from GitHub Actions Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: all-blob-reports | ||
pattern: blob-report-* | ||
merge-multiple: true | ||
- name: Merge into HTML Report | ||
run: yarn playwright merge-reports --reporter html ./all-blob-reports | ||
- name: Upload HTML report | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: html-report--attempt-${{ github.run_number }}-${{ github.run_attempt }} | ||
path: playwright-report | ||
retention-days: 14 |
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
Oops, something went wrong.