Skip to content

Commit

Permalink
debugging issues around specifying the latest patch release
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Sep 29, 2023
1 parent 8ef13bc commit 6774c4c
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [2.19, 3.1]
sdk: ['2.19', 3.0, '3.1']
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [3.1, stable, beta, dev]
sdk: ['3.1', 'stable', 'beta']
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
Expand Down
18 changes: 17 additions & 1 deletion dist/main.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sig.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ void main(List<String> args) async {
sdk = 'stable';
}

print('*** sdk [$sdk] ***');

// flavor
var flavor = core.getInput('flavor');
if (flavor.isEmpty) {
Expand Down Expand Up @@ -252,6 +254,9 @@ Future<String> findLatestSdkForRelease(String sdkRelease) async {
}

void _fail(String message) {
// 'core.setFailed' throws when we call it; see #107.
// core.setFailed(message);

process.exitCode = 1;
core.error(message);
core.setFailed(message);
}
2 changes: 0 additions & 2 deletions lib/node/actions/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ extension type Core (JSObject obj) {

external void exportVariable(String name, String value);

external void setFailed(String name);

// JSPromise<String>
external JSPromise getIDToken(String audience);
}
2 changes: 2 additions & 0 deletions lib/node/process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ extension type Process (JSObject obj) {

/// Read the environment variable [variable].
String? env(String variable) => getProperty<String?>(_env, variable);

external set exitCode(int value);
}

0 comments on commit 6774c4c

Please sign in to comment.