Skip to content

Commit

Permalink
feat: ci with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaar committed May 8, 2023
1 parent 9eeac00 commit 739d1f9
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: ci

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
ci:
name: ci
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [windows-latest]
dotnet-version: ['6.0.x']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Install tool dependencies
run: dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: FsBuddy
path: /home/runner/work/fsBuddy/fsBuddyClient/bin/Debug/net6.0-windows7.0
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
artifacts: /home/runner/work/fsBuddy/fsBuddyClient/bin/Debug/net6.0-windows7.0

0 comments on commit 739d1f9

Please sign in to comment.