Builds and tests #498
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: Builds and tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 4 * * 1,2,3,4,5' | |
jobs: | |
builds: | |
runs-on: windows-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore Spritz/Spritz.sln | |
- name: Build .NET | |
run: dotnet build --no-restore --configuration Release /p:Platform=x64 Spritz/Spritz.sln | |
- name: Test .NET | |
run: dotnet test --no-build --configuration Release --verbosity normal Spritz/Spritz.sln | |
- name: Setup msbuild | |
uses: microsoft/[email protected] | |
- name: Build Installer | |
run: msbuild Spritz/SpritzInstaller/SpritzInstaller.wixproj /p:Configuration=Release | |
dockerbuild: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore Spritz/SpritzCMD/SpritzCMD.csproj | |
- name: Build SpritzCMD | |
run: dotnet build --no-restore /p:Platform=x64 --configuration Release Spritz/SpritzCMD/SpritzCMD.csproj | |
- name: Build docker image | |
run: docker build -t spritz ./Spritz/ | |
- name: Run test in docker image | |
run: docker run --user=root spritz conda run --no-capture-output --live-stream dotnet SpritzCMD.dll -bd -a=/app/spritz/results/ -r="release-96,saccharomyces_cerevisiae,baker's yeast,R64-1-1" -s=SRR13737862 |