-
Notifications
You must be signed in to change notification settings - Fork 3
171 lines (142 loc) · 4.09 KB
/
deno-ci.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
name: CI
on:
push:
branches: [ main ]
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
name: Basic checks w/ ${{ matrix.deno-version }}
strategy:
fail-fast: false
matrix:
deno-version:
- v1.22
- v1.24
- v1.26
- v1.28
- v1.30
- v1.35
- v1.40
- v1.45
- canary
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Use Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Cache https:// deps
uses: actions/cache@v4
with:
path: ~/.cache/deno/deps/https
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-
- name: Check client/mod.ts
if: always()
run: time deno check lib/client/mod.ts
- name: Check demo.ts
if: always()
run: time deno check lib/demo.ts
- name: Run tests
if: always()
run: >
time deno test
--allow-net=169.254.169.254,example.com
--allow-env
lib/client/
lib/encoding/
lib/extras/
build-web-service:
runs-on: ubuntu-latest
name: Web Service checks w/ ${{ matrix.deno-version }}
strategy:
fail-fast: false
matrix:
deno-version:
- v1.40
- v1.45
- canary
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Use Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Cache https:// deps
uses: actions/cache@v4
with:
path: ~/.cache/deno/deps/https
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-
- name: Check generation/deploy/mod.ts
if: always()
run: time deno check generation/deploy/mod.ts
validate-codegen:
runs-on: ubuntu-latest
name: Test codegen w/ ${{ matrix.deno-version }}
strategy:
matrix:
deno-version:
- v1.35
- v1.40
- v1.45
- canary
fail-fast: false # run each branch to completion
steps:
- name: Checkout source, incl aws-sdk-js
uses: actions/checkout@v4
with:
submodules: true
- name: Use Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Cache https:// deps
uses: actions/cache@v4
with:
path: ~/.cache/deno/deps/https
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-
- name: Validate aws-sdk fixtures
if: always()
run: time deno run -A generation/script/validate-fixtures.ts
- name: Validate all aws-sdk services
if: always()
run: time deno run -A generation/script/validate-services.ts
regenerate-bundled:
runs-on: ubuntu-latest
name: Regen bundled services
if: github.event_name == 'push'
needs:
- validate-codegen
strategy:
matrix:
deno-version:
- v1.45
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
submodules: true
- name: Use Deno ${{ matrix.deno-version }}
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno-version }}
- name: Cache https:// deps
uses: actions/cache@v4
with:
path: ~/.cache/deno/deps/https
key: deno/${{ matrix.deno-version }}-https/v1-${{ github.sha }}
restore-keys: deno/${{ matrix.deno-version }}-https/v1-
- name: Regenerate API files
run: time ./generation/script/update-all.sh
- name: Perhaps create PR
uses: peter-evans/create-pull-request@v7
with:
branch: regen-bundled-services
delete-branch: true
commit-message: "chore(services): Rebuild using latest codegen"
title: "chore(services): Rebuild using latest codegen"