1+ name : Update Parity Docs
2+
3+ on :
4+ schedule :
5+ - cron : 0 5 * * MON
6+ workflow_dispatch :
7+ inputs :
8+ targetBranch :
9+ required : false
10+ type : string
11+ default : ' master'
12+ pull_request :
13+ branches :
14+ - master
15+
16+ jobs :
17+ update-parity-coverage-docs :
18+ name : Update Parity Docs
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout docs
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+ path : docs
26+ ref : ${{ github.event.inputs.targetBranch || 'master' }}
27+
28+ - name : Set up system wide dependencies
29+ run : |
30+ sudo apt-get install jq wget
31+
32+ - name : Set up Python 3.11
33+ id : setup-python
34+ uses : actions/setup-python@v5
35+ with :
36+ python-version : " 3.11"
37+
38+ - name : Setup Node
39+ uses : actions/setup-node@v4
40+ with :
41+ node-version : ' 20'
42+
43+ - name : Download scripts from meta repository
44+ run : |
45+ curl -o /tmp/get_latest_github_metrics.sh -L https://raw.githubusercontent.com/localstack/meta/main/scripts/get_latest_github_metrics.sh -H 'Accept: application/vnd.github.v3.raw'
46+ chmod +x /tmp/get_latest_github_metrics.sh
47+
48+ - name : Download metrics data from Moto Integration test pipeline (GitHub)
49+ working-directory : docs
50+ run : /tmp/get_latest_github_metrics.sh ./target main
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
53+ REPOSITORY_NAME : localstack-moto-test-coverage
54+ ARTIFACT_ID : test-metrics
55+ WORKFLOW : moto-integration-tests
56+ PREFIX_ARTIFACT : moto-integration-test
57+ FILTER_SUCCESS : 0
58+
59+ - name : Download metrics data from Terraform Integration test pipeline (GitHub)
60+ working-directory : docs
61+ run : /tmp/get_latest_github_metrics.sh ./target main
62+ env :
63+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
64+ REPOSITORY_NAME : localstack-terraform-test
65+ ARTIFACT_ID : test-metrics
66+ WORKFLOW : " Terraform Tests"
67+ FILTER_SUCCESS : 0
68+
69+ - name : Download metrics data from Pro pipeline (GitHub)
70+ working-directory : docs
71+ run : /tmp/get_latest_github_metrics.sh ./target master
72+ env :
73+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
74+ REPOSITORY_NAME : localstack-ext
75+ ARTIFACT_ID : parity-metric-ext-raw-*
76+ WORKFLOW : " AWS / Build, Test, Push"
77+ PREFIX_ARTIFACT : pro-integration-test
78+
79+ - name : Download coverage (capture-notimplemented) data from Pro pipeline (GitHub)
80+ working-directory : docs
81+ run : /tmp/get_latest_github_metrics.sh ./target master
82+ env :
83+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
84+ REPOSITORY_NAME : localstack-ext
85+ ARTIFACT_ID : capture-notimplemented-pro
86+ WORKFLOW : " AWS / Build, Test, Push"
87+ RESOURCE_FOLDER : " metrics-implementation-details"
88+
89+ - name : Download metrics data from Community pipeline (GitHub)
90+ working-directory : docs
91+ run : /tmp/get_latest_github_metrics.sh ./target master
92+ env :
93+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
94+ REPOSITORY_NAME : localstack
95+ ARTIFACT_ID : parity-metric-raw-amd*
96+ WORKFLOW : " AWS / Build, Test, Push"
97+ PREFIX_ARTIFACT : community-integration-test
98+
99+ - name : Download coverage (capture-notimplemented) data from Community pipeline (GitHub)
100+ working-directory : docs
101+ run : /tmp/get_latest_github_metrics.sh ./target master
102+ env :
103+ GITHUB_TOKEN : ${{ secrets.PRO_ACCESS_TOKEN }}
104+ REPOSITORY_NAME : localstack
105+ ARTIFACT_ID : capture-notimplemented
106+ WORKFLOW : " AWS / Build, Test, Push"
107+ RESOURCE_FOLDER : " metrics-implementation-details/community"
0 commit comments