-
Notifications
You must be signed in to change notification settings - Fork 479
64 lines (50 loc) · 1.72 KB
/
upstream-drift.yml
File metadata and controls
64 lines (50 loc) · 1.72 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Upstream Drift
on:
schedule:
- cron: "30 2 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
metadata-freshness:
name: Metadata freshness
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check metadata freshness against the latest Google tag
env:
GITHUB_TOKEN: ${{ github.token }}
run: swift scripts/checkMetadataFreshness.swift --output .build/metadata-freshness --fail-on-update
- name: Upload metadata freshness artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: metadata-freshness
path: .build/metadata-freshness
if-no-files-found: warn
source-drift:
name: Source and resource drift
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check tracked upstream source and resource drift
run: swift scripts/checkUpstreamSourceDrift.swift --output .build/upstream-source-drift
- name: Upload source drift artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: upstream-source-drift
path: .build/upstream-source-drift
if-no-files-found: warn
google-master-parity:
name: Google master parity
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check upstream test parity against Google master
run: swift scripts/checkUpstreamTestParity.swift --upstream-ref master
- name: Check upstream API parity against Google master
run: swift scripts/checkUpstreamAPIParity.swift --upstream-ref master