-
Notifications
You must be signed in to change notification settings - Fork 52
247 lines (236 loc) · 6.39 KB
/
dev.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
# +-----------------------------------------------+
# | WARNING: This file is generated, do not edit! |
# | Edit _templates/dev.yml.erb instead. |
# +-----------------------------------------------+
name: Dev
on:
push:
branches-ignore:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install npm dependencies
run: npm install
- name: Lint - check formatting
run: npm run lint:formatting
# run a common set of tests against ALL images
smoke-tests:
needs: [lint]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
base:
- clojure
tag:
- clojure
target:
- linux
include:
- base: clojure:boot
tag: clojure-boot
target: linux
- base: clojure:lein
tag: clojure-lein
target: linux
- base: clojure:tools-deps
tag: clojure-tools-deps
target: linux
- base: elixir
tag: elixir
target: linux
- base: elixir:1.10
tag: elixir-1.10
target: linux
- base: elixir:1.11
tag: elixir-1.11
target: linux
- base: elixir:1.12
tag: elixir-1.12
target: linux
- base: golang
tag: golang
target: linux
- base: golang:1.20
tag: golang-1.20
target: linux
- base: golang:1.21
tag: golang-1.21
target: linux
- base: golang:1.22
tag: golang-1.22
target: linux
- base: gradle
tag: gradle
target: linux
- base: gradle:jdk11
tag: gradle-jdk11
target: linux
- base: gradle:jdk12
tag: gradle-jdk12
target: linux
- base: gradle:jdk13
tag: gradle-jdk13
target: linux
- base: gradle:jdk14
tag: gradle-jdk14
target: linux
- base: gradle:jdk16
tag: gradle-jdk16
target: linux
- base: gradle:jdk17
tag: gradle-jdk17
target: linux
- base: gradle:jdk18
tag: gradle-jdk18
target: linux
- base: gradle:jdk19
tag: gradle-jdk19
target: linux
- base: gradle:jdk20
tag: gradle-jdk20
target: linux
- base: gradle:jdk21
tag: gradle-jdk21
target: linux
- base: gradle:jdk8
tag: gradle-jdk8
target: linux
- base: maven
tag: maven
target: linux
- base: maven:3-eclipse-temurin-17
tag: maven-3-jdk-17
target: linux
- base: maven:3-eclipse-temurin-20
tag: maven-3-jdk-20
target: linux
- base: maven:3-eclipse-temurin-21
tag: maven-3-jdk-21
target: linux
- base: maven:3-eclipse-temurin-22
tag: maven-3-jdk-22
target: linux
- base: maven:3-jdk-11
tag: maven-3-jdk-11
target: linux
- base: maven:3-jdk-8
tag: maven-3-jdk-8
target: linux
- base: mcr.microsoft.com/dotnet/core/sdk
tag: dotnet
target: linux
- base: mcr.microsoft.com/dotnet/sdk:8.0
tag: dotnet-8.0
target: linux
- base: node
tag: node
target: linux
- base: node:18
tag: node-18
target: linux
- base: node:20
tag: node-20
target: linux
- base: node:22
tag: node-22
target: linux
- base: python
tag: python
target: linux
- base: python:3.8
tag: python-3.8
target: linux
- base: python:3.9
tag: python-3.9
target: linux
- base: python:3.10
tag: python-3.10
target: linux
- base: python:3.11
tag: python-3.11
target: linux
- base: ruby
tag: ruby
target: linux
- base: ruby:3.3
tag: ruby-3.3
target: linux
- base: swift
tag: swift
target: linux
- base: ubuntu
tag: linux
target: linux
- base: alpine
tag: alpine
target: alpine
- base: alpine
tag: cocoapods
target: alpine
- base: composer
tag: composer
target: alpine
- base: composer
tag: php
target: alpine
- base: docker:latest
tag: docker
target: alpine
- base: docker:latest
tag: docker-latest
target: alpine
- base: python:alpine
tag: python-alpine
target: alpine
- base: ruby:alpine
tag: ruby-alpine
target: alpine
steps:
- uses: actions/checkout@v2
- name: Build all images
uses: docker/build-push-action@v2
with:
push: false
tags: ${{ matrix.tag }}
file: Dockerfile
target: ${{ matrix.target }}
build-args: |
IMAGE=${{ matrix.base }}
TAG=${{ matrix.tag }}
- name: Show images
run: docker image ls
- name: Install npm dependencies
run: npm install
- name: Run tests
run: npm run test:smoke
env:
SNYK_TOKEN: ${{secrets.SNYK_TOKEN}}
IMAGE_TAG: ${{ matrix.tag }}
# Select tests against specific images
image-specific-tests:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build `python-3.8` image for test
uses: docker/build-push-action@v2
with:
push: false
tags: python-3.8
file: Dockerfile
target: linux
build-args: |
IMAGE=python:3.8
TAG=python-3.8
- name: Show images
run: docker image ls
- name: Install npm dependencies
run: npm install
- name: Run tests
run: npx jest test/image-specific/python-3-poetry.spec.ts
env:
SNYK_TOKEN: ${{secrets.SNYK_TOKEN}}