Last active
December 15, 2022 00:50
-
-
Save gistlyn/856bd13c38ad388ef6d48d06c32ab395 to your computer and use it in GitHub Desktop.
docker-build
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: Build | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- '**' # matches every branch | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2.0.0 | |
- name: setup .net core | |
uses: actions/setup-dotnet@v1.7.2 | |
with: | |
dotnet-version: 6.0.100 | |
- name: build | |
run: dotnet build | |
working-directory: . | |
- name: test | |
run: | | |
dotnet test | |
if [ $? -eq 0 ]; then | |
echo TESTS PASSED | |
else | |
echo TESTS FAILED | |
exit 1 | |
fi | |
working-directory: ./MyApp.Tests | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment