Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 7ba6006

Browse files
authored
Switch to smoke tests, weekly dev image generation (#1152)
1 parent 6cbf5a9 commit 7ba6006

17 files changed

+441
-85
lines changed

.github/workflows/push-codespaces-dev.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/push-dev.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,17 @@ name: Build and push "dev" images
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches: [main]
7-
paths:
8-
- 'containers/alpine/**'
9-
- 'containers/debian/**'
10-
- 'containers/cpp/**'
11-
- 'containers/dotnet/**'
12-
- 'containers/go/**'
13-
- 'containers/java/**'
14-
- 'containers/java-8/**'
15-
- 'containers/javascript-node/**'
16-
- 'containers/php/**'
17-
- 'containers/python-3/**'
18-
- 'containers/python-3-anaconda/**'
19-
- 'containers/python-3-miniconda/**'
20-
- 'containers/jekyll/**'
21-
- 'containers/ruby/**'
22-
- 'containers/rust/**'
23-
- 'containers/typescript-node/**'
24-
- 'containers/ubuntu/**'
25-
- 'repository-containers/images/**'
5+
schedule:
6+
- cron: '0 14 * * MON'
267

278
jobs:
289
build-and-push:
2910
name: Build and push
3011
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
3112
strategy:
3213
matrix:
33-
page: [1, 2, 3, 4, 5, 6, 7, 8, 9]
34-
page-total: [9]
14+
page: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
15+
page-total: [10]
3516
fail-fast: true
3617
runs-on: ubuntu-latest
3718
steps:
@@ -76,8 +57,7 @@ jobs:
7657
--registry ${{ secrets.REGISTRY }} \
7758
--registry-path ${{ secrets.REGISTRY_BASE_PATH }} \
7859
--stub-registry ${{ secrets.STUB_REGISTRY }} \
79-
--stub-registry-path ${{ secrets.STUB_REGISTRY_BASE_PATH }} \
80-
--skip codespaces-linux codespaces-linux-stretch
60+
--stub-registry-path ${{ secrets.STUB_REGISTRY_BASE_PATH }}
8161
8262
package:
8363
name: Package
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Smoke test "alpine" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/alpine/**'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'containers/debian/**'
15+
jobs:
16+
smoke-test:
17+
name: Smoke test
18+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
id: checkout
23+
uses: actions/checkout@v2
24+
- name: Smoke test
25+
id: smoke_test
26+
uses: ./.github/actions/smoke-test
27+
with:
28+
definition: alpine
29+
image: mcr.microsoft.com/vscode/devcontainers/base:dev-alpine
30+
user: vscode
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke test "python-3-anaconda" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/python-3-anaconda/**'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'containers/python-3-anaconda/**'
15+
jobs:
16+
smoke-test:
17+
name: Smoke test
18+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
22+
- name: Checkout
23+
id: checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Smoke test
27+
id: smoke_test
28+
uses: ./.github/actions/smoke-test
29+
with:
30+
definition: ruby
31+
image: mcr.microsoft.com/vscode/devcontainers/anaconda:dev-3
32+
user: vscode

.github/workflows/smoke-codespace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
push:
7-
branches: [actions-test]
7+
branches: [main, actions-test]
88
paths:
99
- 'containers/codespaces-linux/**'
1010
pull_request:

.github/workflows/smoke-cpp.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke test "cpp" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/cpp/**'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'containers/cpp/**'
15+
jobs:
16+
smoke-test:
17+
name: Smoke test
18+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
22+
- name: Checkout
23+
id: checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Smoke test
27+
id: smoke_test
28+
uses: ./.github/actions/smoke-test
29+
with:
30+
definition: debian
31+
image: mcr.microsoft.com/vscode/devcontainers/cpp:dev-debian
32+
user: vscode

.github/workflows/smoke-debian.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
push:
7-
branches: [actions-test]
7+
branches: [main, actions-test]
88
paths:
99
- 'containers/debian/**'
1010
pull_request:
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke test "dotnet" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/dotnet/**'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'containers/dotnet/**'
15+
jobs:
16+
smoke-test:
17+
name: Smoke test
18+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
22+
- name: Checkout
23+
id: checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Smoke test
27+
id: smoke_test
28+
uses: ./.github/actions/smoke-test
29+
with:
30+
definition: dotnet
31+
image: mcr.microsoft.com/vscode/devcontainers/dotnet:dev-5.0
32+
user: vscode

.github/workflows/smoke-go.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke test "go" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/go/**'
10+
pull_request:
11+
branches:
12+
- main
13+
paths:
14+
- 'containers/go/**'
15+
jobs:
16+
smoke-test:
17+
name: Smoke test
18+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
22+
- name: Checkout
23+
id: checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Smoke test
27+
id: smoke_test
28+
uses: ./.github/actions/smoke-test
29+
with:
30+
definition: go
31+
image: mcr.microsoft.com/vscode/devcontainers/go:dev-1
32+
user: vscode

.github/workflows/smoke-java.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Smoke test "java" and "java-8" build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main, actions-test]
8+
paths:
9+
- 'containers/java/**'
10+
- 'containers/java-8/**'
11+
pull_request:
12+
branches:
13+
- main
14+
paths:
15+
- 'containers/java/**'
16+
- 'containers/java-8/**'
17+
jobs:
18+
smoke-test:
19+
name: Smoke test
20+
if: "!contains(github.event.head_commit.message, 'Automated update') && !contains(github.event.head_commit.message, 'CI ignore')"
21+
runs-on: ubuntu-latest
22+
steps:
23+
24+
- name: Checkout
25+
id: checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Smoke test java
29+
id: smoke_test
30+
uses: ./.github/actions/smoke-test
31+
with:
32+
definition: javascript-node
33+
image: mcr.microsoft.com/vscode/devcontainers/java:dev-17
34+
user: vscode
35+
36+
- name: Smoke test java-8
37+
id: smoke_test
38+
uses: ./.github/actions/smoke-test
39+
with:
40+
definition: java-8
41+
image: mcr.microsoft.com/vscode/devcontainers/java:dev-8
42+
user: vscode

0 commit comments

Comments
 (0)