Skip to content

Commit

Permalink
Add ci to calculator branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kamendov-maxim committed Mar 23, 2024
2 parents 9cf17b4 + 2e7b4c9 commit 46cb70b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build
on: [push, pull_request]
jobs:
build-Ubuntu_and_MacOs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Build
run: for f in $(find . -name "* sln"); do dotnet build $f; done
- name: Run tests
run: for f in $(find . -name "*.sln"); do dotnet test $f; done
build-Windows:
runs-on: windows-latest
defaults:
run:
shell: cmd
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Build
run: For /R %%I in (*.sln) do dotnet build %%I
- name: Run tests
run: For /R %%I in (*.sln) do dotnet test %%I

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[![GitHub Actions CI](https://github.com/kamendov-maxim/semester2/actions/workflows/ci.yml/badge.svg)](https://github.com/kamendov-maxim/semester2/actions/workflows/ci.yml)

Репозиторий с домашними заданиями для университета

0 comments on commit 46cb70b

Please sign in to comment.