-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afc1164
commit 9f9fabc
Showing
4 changed files
with
61 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: dotnet setup | ||
description: "base dotnet setup for project" | ||
runs: | ||
using: composite | ||
steps: | ||
- name: setup | ||
id: setup-dotnet | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: "8.0.300" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup dotnet | ||
uses: ./.github/dotnet | ||
- uses: actions/checkout@v2 | ||
- name: Run dotnet build | ||
run: dotnet build --configuration Debug | ||
|
||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup dotnet | ||
uses: ./.github/dotnet | ||
- uses: actions/checkout@v2 | ||
- name: dotnet format check | ||
run: dotnet format --verify-no-changes *.sln | ||
env: | ||
PATH: ${{ github.env.PATH }}:/home/runner/.dotnet/tools | ||
|
||
unit-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup dotnet | ||
uses: ./.github/dotnet | ||
- uses: actions/checkout@v2 | ||
- name: unit test | ||
run: dotnet test *sln | ||
|
||
image-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag yurvon-screamo/redfish.mockup.server:$(date +%s) |
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
This file was deleted.
Oops, something went wrong.