Skip to content

Commit

Permalink
Merge pull request #47 from zenta-ab/hotfix/update-workflow
Browse files Browse the repository at this point in the history
Disable tests and bump .net version used.
  • Loading branch information
brokenprogrammer authored Jun 23, 2022
2 parents f437e21 + 998d1f1 commit 4fa000d
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ jobs:
ClientSecret: ${{ secrets.CLIENTSECRET }}

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: 2.2
dotnet-version: |
5.0.x
6.0.x
- name: Install dependencies
shell: cmd
Expand All @@ -42,25 +45,3 @@ jobs:
run: |
cd Fortnox.NET
dotnet build --configuration Release --no-restore
- name: Test
shell: powershell
run: |
cd Fortnox.NET.Tests\Fortnox.NET.Tests\bin\Release\netcoreapp2.2
function ErrorOut
{
exit 1
}
$Tests = @("AbsenceTransactionsTests", "AccountChartTests", "AccountTests", "ArchiveTest", "ArticleFileConnectionsTest", "ArticleTests", "AssetFileConnectionsTests", "AssetsTest", "AssetTypeTests", "AttendanceTransactionTests", "CompanyInformationTests", "CompanySettingsTests", "ContractTemplateTests", "ContractTests", "CostCenterTests", "CurrencyTests", "CustomerTests", "EmployeeTests", "ExpenseTest", "FinancialYearTests", "InboxTest", "InvoicePaymentTests", "InvoiceTests", "LabelTests", "LockedPeriodTests", "ModesOfPaymentsTests", "OfferTests", "OrderTests", "PredefinedAccountsTest", "PriceListTests", "PriceTests", "PrintTemplatesTests", "ProjectTests", "SalaryTransactionTests", "SIETests", "SupplierInvoiceExternalURLConnectionsServiceTests", "SupplierInvoiceFileConnectionsTests", "SupplierInvoicePaymentTests", "SupplierInvoiceTests", "SupplierTests", "TaxReductionTests", "TermsOfDeliveryTests", "TermsOfPaymentTests", "TrustedEmailDomainTests", "UnitTests", "VoucherSeriesTests", "VoucherTests", "WayOfDeliveryTests")
For($Index = 0; $Index -lt $Tests.Length; $Index++)
{
$CurrentTest = $Tests[$Index]
VSTest.Console.exe Fortnox.NET.Tests.dll /Tests:$CurrentTest
if (!($?))
{
ErrorOut
}
}

0 comments on commit 4fa000d

Please sign in to comment.