-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
43 lines (40 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
smoke:
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Validate the bundled runtime
run: |
node scripts/verify-distribution.js
node --check dist/index.js
- name: Run the public Action
id: patchpilot
uses: ./
with:
old_spec: fixtures/openapi.v1.json
new_spec: fixtures/openapi.v2.json
repo: fixtures/client
output_dir: patchpilot-artifacts
project_name: Public distribution smoke test
- name: Verify migration outputs
env:
BREAKING_CHANGES: ${{ steps.patchpilot.outputs.breaking_changes }}
PATCHED_FILES: ${{ steps.patchpilot.outputs.patched_files }}
MANUAL_CHANGES: ${{ steps.patchpilot.outputs.manual_changes }}
shell: bash
run: |
set -euo pipefail
test "$BREAKING_CHANGES" = "10"
test "$PATCHED_FILES" = "2"
test "$MANUAL_CHANGES" = "0"
test -s patchpilot-artifacts/audit-report.json
test -s patchpilot-artifacts/migration.patch
test -s patchpilot-artifacts/migration-bundle.zip