Skip to content

Commit fade963

Browse files
committed
Merge branch 'main' into PH06
2 parents abda1e1 + 3439b8e commit fade963

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v2
18+
with:
19+
dotnet-version: 9.0.x
20+
21+
- name: Install dependencies
22+
run: dotnet restore
23+
# working-directory: StarAcademy.FullTextSearch.sln
24+
25+
- name: Build
26+
run: dotnet build --configuration Release --no-restore
27+
# working-directory: StarAcademy.FullTextSearch.sln
28+
29+
- name: Test
30+
run: dotnet test --no-restore --verbosity normal --collect:"XPlat Code Coverage"
31+
working-directory: "./PH04 - UnitTest/"
32+
33+
- name: Publish code coverage reports to codecove.io
34+
uses: codecov/codecov-action@v1
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
files: ./**/coverage.cobertura.xml
38+
fail_ci_if_error: true
39+
40+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v2
15+
with:
16+
dotnet-version: 8.0.x
17+
- name: Get current release version
18+
id: version
19+
uses: pozetroninc/github-action-get-latest-release@master
20+
with:
21+
repository: Star-Academy/Summer1404-SE-Team02
22+
- name: Show folder contents
23+
run: ls -R
24+
- name: Build library and generate NuGet Package
25+
run: dotnet pack -c Release -o artifacts -p:PackageVersion=${{ steps.version.outputs.release }}
26+
working-directory: "PH02 - InvertedIndexIR"
27+
- name: Publish NuGet Package
28+
run: dotnet nuget push ./**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[![build](https://github.com/Star-Academy/Summer1404-SE-Team02/actions/workflows/buildPipeline.yml/badge.svg?branch=PH06)](https://github.com/Star-Academy/Summer1404-SE-Team02/actions/workflows/buildPipeline.yml)
2+
[![codecov](https://codecov.io/github/Star-Academy/Summer1404-SE-Team02/branch/PH06/graph/badge.svg?token=YZGJFQTCAV)](https://codecov.io/github/Star-Academy/Summer1404-SE-Team02)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=d083b6d2_002D2ba9_002D42e2_002Dbdbb_002D00cf3d3afa91/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="ApplyFilter_WithMinusWords_ReturnsNotIncludingMatchingDocs" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;&#xD;
3+
&lt;Solution /&gt;&#xD;
4+
&lt;/SessionState&gt;</s:String></wpf:ResourceDictionary>

0 commit comments

Comments
 (0)