cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/detect-breaking-changes.yml

36lines · modecode

1name: CI
2on:
3 pull_request:
4 branches:
5 - main
6 - next
7
8jobs:
9 detect_breaking_changes:
10 runs-on: 'ubuntu-latest'
11 name: detect-breaking-changes
12 steps:
13 - name: Calculate fetch-depth
14 run: |
15 echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
16
17 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18 with:
19 # Ensure we can check out the pull request base in the script below.
20 fetch-depth: ${{ env.FETCH_DEPTH }}
21
22 - name: Set up Node
23 uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
24 with:
25 node-version: '20'
26 - name: Install dependencies
27 run: |
28 yarn install
29
30 - name: Detect breaking changes
31 continue-on-error: true
32 run: |
33 # Try to check out previous versions of the breaking change detection script. This ensures that
34 # we still detect breaking changes when entire files and their tests are removed.
35 git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
36 ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}
37