https://github.com/martinwoodward/prime
Simple .NET Core app
https://github.com/martinwoodward/prime
Last synced: about 1 month ago
JSON representation
Simple .NET Core app
- Host: GitHub
- URL: https://github.com/martinwoodward/prime
- Owner: martinwoodward
- License: mit
- Created: 2020-01-28T09:25:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-16T15:49:26.000Z (over 1 year ago)
- Last Synced: 2025-03-15T15:48:12.222Z (about 2 months ago)
- Language: C#
- Size: 39.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# prime
Simple .NET Core app based workflow demo.Cheatsheet
```yaml
name: CIon:
push:
branches:
- master
- 'releases/**'
pull_request:
branches:
- masterjobs:
build:strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Build with dotnet
run: dotnet build prime --configuration Release
- name: Test with dotnet
run: dotnet test prime
```Disable fail fast
```yaml
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
```Show contexts
```yaml
- name: Inspect contexts
run: |
echo "The github context is:"
echo "${{ toJson(github) }}"
echo ""
echo "The job context is:"
echo "${{ toJson(job) }}"
echo ""
echo "The steps context is:"
echo "${{ toJson(steps) }}"
echo ""
echo "The runner context is:"
echo "${{ toJson(runner) }}"
echo ""
echo "The strategy context is:"
echo "${{ toJson(strategy) }}"
echo ""
echo "The matrix context is:"
echo "${{ toJson(matrix) }}"```