[Joker]: upgraded git workflow actions #360
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Linux | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Start Redis server | |
run: docker run --name redis-server -p 6379:6379 -d redis | |
- name: Start MS SQL server | |
run: docker run --name sql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=YourNewStrong@Passw0rd' -p 1401:1433 -d mcr.microsoft.com/mssql/server:2017-latest | |
- name: Install dependencies | |
run: dotnet restore ./SqlTableDependency.Extensions/SqlTableDependency.Extensions.csproj | |
- name: Build | |
run: dotnet build ./SqlTableDependency.Extensions/SqlTableDependency.Extensions.csproj --configuration Release --no-restore | |
#- name: Test | |
# run: dotnet test ./SqlTableDependency.Extensions.IntegrationTests/SqlTableDependency.Extensions.IntegrationTests.csproj |