-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change dev instructions and CI (#593)
* docs: change the development process to use the master branch instead of the develop * docs: remove reference to nightly builds from the README * docs: add scott wlaschin presentation to the videos section of README * docs: add reference to the discussions feature to the README * ci: separate the build and test workflow from the publish workflow, and change how they are triggered, so we can control based on the release type: prerelease or release * docs: update DEVGUIDE according to the ci changes * chore: remove comment * chore: replace branch references by branch * chore: README -> replace 'master' branch references by 'main' branch * chore: RELEASE_NOTES -> replace 'master' branch references by 'main' branch * chore: src/Giraffe/Giraffe.fsproj -> replace 'master' branch references by 'main' branch * chore: revert commits that replace the master branch reference by main
- Loading branch information
Showing
4 changed files
with
65 additions
and
40 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,41 @@ | ||
name: Build and test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
# Stop wasting time caching packages | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
# Disable sending usage data to Microsoft | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
||
# Kill other jobs when we trigger this workflow by sending new commits | ||
# to the PR. | ||
# https://stackoverflow.com/a/72408109 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
6.x | ||
7.x | ||
8.x | ||
- name: Restore | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build -c Release --no-restore | ||
- name: Test | ||
run: dotnet test -c Release |
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 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 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