Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chneau/testing-github-actions
Testing Github Actions with a C# solution. Actually only HelloWorldHttp is useful for the deployment.
https://github.com/chneau/testing-github-actions
cicd dotnet github-actions
Last synced: 30 days ago
JSON representation
Testing Github Actions with a C# solution. Actually only HelloWorldHttp is useful for the deployment.
- Host: GitHub
- URL: https://github.com/chneau/testing-github-actions
- Owner: chneau
- Created: 2020-09-08T17:27:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T11:47:08.000Z (over 1 year ago)
- Last Synced: 2024-12-19T05:58:07.945Z (about 1 month ago)
- Topics: cicd, dotnet, github-actions
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# testing-github-actions
Learning/testing github actions.
## to keep in mind
- if using docker hub, they impose new rate limit of their API for non paying customers.
## next
- updating docker container latest tag to the latest deployment version too.
- use github container registry https://github.com/marketplace/actions/build-and-publish-docker-image-to-github-packages-registry## conclusion
It's as easy as getting the workflow file correct. I'm now planing to replace some of my travis.ci to github action.
## links
- https://hub.docker.com/r/testingchneau/testing-github-actions/tags
- https://github.com/chneau/testing-github-actions/actions
- http://chneau.ddns.net
- https://itnext.io/app-trimming-in-net-5-reduce-your-app-sizes-dramatically-39891e2bedc1
- `-p:PublishTrimmed=True -p:TrimMode=CopyUsed`
- `-p:PublishTrimmed=True -p:TrimMode=Link`## dev
- Setting up some C# project
```bash
# set up
dotnet new sln --name Maths
dotnet new gitignoredotnet new classlib --framework netcoreapp3.1 --name Operations
dotnet new xunit --name Operations.Tests
dotnet new console --name EntryPoint
dotnet new console --name HelloWorldHttp
dotnet sln add Operations
dotnet sln add Operations.Tests
dotnet sln add EntryPoint
dotnet sln add HelloWorldHttp# references
dotnet add Operations.Tests reference Operations
dotnet add EntryPoint reference Operations# add nugget
dotnet add package Microsoft.AspNetCore.Owin --version 3.1.3# run
dotnet run --project EntryPoint# test
dotnet test
```- Setting up CI
```bash
# set up
mkdir -p .github/workflows
code .github/workflows/tests.yml # see file# docker hub account https://hub.docker.com/u/testingchneau
# docker hub image https://hub.docker.com/r/testingchneau/testing-github-actions/tags
```- Setting up account for docker
```bash
# ubuntu
sudo adduser gitci
sudo usermod -aG docker gitci
```