Skip to content

fixup! chore: add GitHub actions #2

fixup! chore: add GitHub actions

fixup! chore: add GitHub actions #2

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fmt:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
cache-dependency-path: */packages.lock.json

Check failure on line 21 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 21
- name: Install dotnet format tool
run: dotnet tool install -g dotnet-format
- name: dotnet restore
run: dotnet restore --locked-mode .\Coder.Desktop.sln
- name: dotnet format
run: dotnet format --verify-no-changes --no-restore .\Coder.Desktop.sln
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
- name: dotnet restore
run: dotnet restore --locked-mode .\Coder.Desktop.sln
- name: dotnet test
run: dotnet test --no-restore .\Coder.Desktop.sln
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
cache: true
- name: dotnet restore
run: dotnet restore --locked-mode .\Coder.Desktop.sln
- name: dotnet build
run: dotnet build .\Coder.Desktop.sln
- name: dotnet publish
run: dotnet publish .\Coder.Desktop.sln -c Release -o .\publish
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: publish
path: .\publish\