Skip to content

Commit 13007b5

Browse files
committed
more tests
1 parent 3c5af9a commit 13007b5

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

test/dart/channel-beta.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
source dev-container-features-test-lib
5+
6+
LATEST_VERSION="$(git ls-remote --tags https://github.com/dart-lang/sdk | grep -oP "(?<=refs/tags/)[0-9]+\\.[0-9]+\\.[0-9]+.*beta$" | sort -V | tail -n 1)"
7+
8+
check 'dart' bash -c "dart --version | grep ${LATEST_VERSION}"
9+
10+
reportResults

test/dart/scenarios.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version-3": {
3+
"image": "mcr.microsoft.com/devcontainers/base:debian",
4+
"features": {
5+
"dart": {
6+
"version": "3"
7+
}
8+
}
9+
},
10+
"channel-beta": {
11+
"image": "mcr.microsoft.com/devcontainers/base:debian",
12+
"features": {
13+
"dart": {
14+
"channel": "beta"
15+
}
16+
}
17+
},
18+
"channel-main": {
19+
"image": "mcr.microsoft.com/devcontainers/base:debian",
20+
"features": {
21+
"dart": {
22+
"channel": "main"
23+
}
24+
}
25+
}
26+
}

test/dart/test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
set -e
34
source dev-container-features-test-lib
45

test/dart/version-3.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
source dev-container-features-test-lib
5+
6+
LATEST_VERSION="$(git ls-remote --tags https://github.com/dart-lang/sdk | grep -oP "(?<=refs/tags/)3\\.[0-9]+\\.[0-9]+$" | sort -V | tail -n 1)"
7+
8+
check 'dart' bash -c "dart --version | grep ${LATEST_VERSION}"
9+
10+
reportResults

0 commit comments

Comments
 (0)