Skip to content

Commit 52f81c3

Browse files
author
Ahmad
committed
reorganize ci.yml
1 parent 513e800 commit 52f81c3

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ jobs:
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 15
2121
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v4
22+
- uses: actions/checkout@v4
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: 8.0.x
27+
- name: Restore dependencies
28+
run: dotnet restore
2429
- name: Build
25-
run: dotnet build --configuration Release
30+
run: dotnet build --no-restore
2631
- name: Start MySql
2732
run: |
2833
sudo /etc/init.d/mysql start
@@ -31,7 +36,7 @@ jobs:
3136
mysql -e 'CREATE TABLE cars(id int primary key auto_increment);' -u${{ env.DB_MYSQL_USER }} ${{ env.DB_MYSQL_DATABASE }}
3237
mysql -e 'SHOW TABLES;' -u${{ env.DB_MYSQL_USER }} ${{ env.DB_MYSQL_DATABASE }}
3338
- name: Test
34-
run: dotnet test --configuration Release --no-build
39+
run: dotnet test --no-build --verbosity normal
3540
env:
3641
SQLKATA_MYSQL_HOST: ${{ env.DB_MYSQL_HOST }}
3742
SQLKATA_MYSQL_USER: ${{ env.DB_MYSQL_USER }}

.github/workflows/dotnet.yml

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

0 commit comments

Comments
 (0)