add test job to main workflow

This commit is contained in:
La'Kaleigh Harris 2021-10-14 20:53:21 +00:00 committed by GitHub
parent cc7214deee
commit da11d69ff4
3 changed files with 24 additions and 4 deletions

View File

@ -33,6 +33,26 @@ jobs:
if: runner.os != 'windows'
run: __tests__/verify-no-unstaged-changes.sh
test-setup-multiple-versions:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Clear toolcache
shell: pwsh
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
- name: Setup dotnet 2.2.402
uses: ./
with:
dotnet-version: '2.2.402 , 3.1.404 , 5.0.100'
- name: Verify dotnet
shell: pwsh
run: __tests__/verify-dotnet.ps1 ru
test-setup-full-version:
runs-on: ${{ matrix.operating-system }}
strategy:

6
dist/index.js vendored
View File

@ -16955,8 +16955,8 @@ class DotnetCoreInstaller {
return __awaiter(this, void 0, void 0, function* () {
let output = '';
let resultCode = 0;
if (this.version.includes(",")) {
this.versions = this.version.split(",");
if (this.version.includes(',')) {
this.versions = this.version.split(',');
}
else {
this.versions.push(this.version);
@ -16964,7 +16964,7 @@ class DotnetCoreInstaller {
try {
for (var _b = __asyncValues(this.versions), _c; _c = yield _b.next(), !_c.done;) {
const version = _c.value;
let calculatedVersion = yield this.resolveVersion(new DotNetVersionInfo(this.version));
let calculatedVersion = yield this.resolveVersion(new DotNetVersionInfo(version));
var envVariables = {};
for (let key in process.env) {
if (process.env[key]) {

View File

@ -96,7 +96,7 @@ export class DotnetCoreInstaller {
for await (const version of this.versions) {
let calculatedVersion = await this.resolveVersion(
new DotNetVersionInfo(this.version)
new DotNetVersionInfo(version)
);
var envVariables: {[key: string]: string} = {};