Skip to content

Instantly share code, notes, and snippets.

@gistlyn
Last active December 15, 2022 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gistlyn/856bd13c38ad388ef6d48d06c32ab395 to your computer and use it in GitHub Desktop.
Save gistlyn/856bd13c38ad388ef6d48d06c32ab395 to your computer and use it in GitHub Desktop.
docker-build
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