Skip to content

Commit 592cca2

Browse files
committed
Try fix build
Signed-off-by: André Silva <[email protected]>
1 parent bd38bef commit 592cca2

File tree

4 files changed

+103
-98
lines changed

4 files changed

+103
-98
lines changed

Diff for: .github/workflows/ci.yml

+63-61
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,31 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
22-
- name: Checkout
23-
uses: actions/checkout@v4
24-
with:
25-
fetch-depth: 0
26-
submodules: recursive
27-
28-
- name: Setup .NET SDK
29-
uses: actions/setup-dotnet@v4
30-
env:
31-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
with:
33-
dotnet-version: |
34-
6.0.x
35-
7.0.x
36-
source-url: https://nuget.pkg.github.com/open-feature/index.json
37-
38-
- name: Restore
39-
run: dotnet restore
40-
41-
- name: Build
42-
run: dotnet build --no-restore
43-
44-
- name: Test
45-
run: dotnet test --no-build --logger GitHubActions
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
submodules: recursive
27+
28+
- name: Setup .NET SDK
29+
uses: actions/setup-dotnet@v4
30+
env:
31+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
dotnet-version: |
34+
6.0.x
35+
7.0.x
36+
8.0.x
37+
source-url: https://nuget.pkg.github.com/open-feature/index.json
38+
39+
- name: Restore
40+
run: dotnet restore
41+
42+
- name: Build
43+
run: dotnet build --no-restore
44+
45+
- name: Test
46+
run: dotnet test --no-build --logger GitHubActions
4647

4748
packaging:
4849
needs: build
@@ -54,40 +55,41 @@ jobs:
5455
runs-on: ubuntu-latest
5556

5657
steps:
57-
- name: Checkout
58-
uses: actions/checkout@v4
59-
with:
60-
fetch-depth: 0
61-
submodules: recursive
62-
63-
- name: Setup .NET SDK
64-
uses: actions/setup-dotnet@v4
65-
env:
66-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
with:
68-
dotnet-version: |
69-
6.0.x
70-
7.0.x
71-
source-url: https://nuget.pkg.github.com/open-feature/index.json
72-
73-
- name: Restore
74-
run: dotnet restore
75-
76-
- name: Pack NuGet packages (CI versions)
77-
if: startsWith(github.ref, 'refs/heads/')
78-
run: dotnet pack --no-restore --version-suffix "ci.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}"
79-
80-
- name: Pack NuGet packages (PR versions)
81-
if: startsWith(github.ref, 'refs/pull/')
82-
run: dotnet pack --no-restore --version-suffix "pr.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}"
83-
84-
- name: Publish NuGet packages (base)
85-
if: github.event.pull_request.head.repo.fork == false
86-
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.GITHUB_TOKEN }}" --source https://nuget.pkg.github.com/open-feature/index.json
87-
88-
- name: Publish NuGet packages (fork)
89-
if: github.event.pull_request.head.repo.fork == true
90-
uses: actions/[email protected]
91-
with:
92-
name: nupkgs
93-
path: src/**/*.nupkg
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
with:
61+
fetch-depth: 0
62+
submodules: recursive
63+
64+
- name: Setup .NET SDK
65+
uses: actions/setup-dotnet@v4
66+
env:
67+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
dotnet-version: |
70+
6.0.x
71+
7.0.x
72+
8.0.x
73+
source-url: https://nuget.pkg.github.com/open-feature/index.json
74+
75+
- name: Restore
76+
run: dotnet restore
77+
78+
- name: Pack NuGet packages (CI versions)
79+
if: startsWith(github.ref, 'refs/heads/')
80+
run: dotnet pack --no-restore --version-suffix "ci.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}"
81+
82+
- name: Pack NuGet packages (PR versions)
83+
if: startsWith(github.ref, 'refs/pull/')
84+
run: dotnet pack --no-restore --version-suffix "pr.$(date -u +%Y%m%dT%H%M%S)+sha.${GITHUB_SHA:0:9}"
85+
86+
- name: Publish NuGet packages (base)
87+
if: github.event.pull_request.head.repo.fork == false
88+
run: dotnet nuget push "src/**/*.nupkg" --api-key "${{ secrets.GITHUB_TOKEN }}" --source https://nuget.pkg.github.com/open-feature/index.json
89+
90+
- name: Publish NuGet packages (fork)
91+
if: github.event.pull_request.head.repo.fork == true
92+
uses: actions/[email protected]
93+
with:
94+
name: nupkgs
95+
path: src/**/*.nupkg

Diff for: .github/workflows/code-coverage.yml

+20-19
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,26 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020

2121
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
2525

26-
- name: Setup .NET SDK
27-
uses: actions/setup-dotnet@v4
28-
env:
29-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
with:
31-
dotnet-version: |
32-
6.0.x
33-
7.0.x
34-
source-url: https://nuget.pkg.github.com/open-feature/index.json
26+
- name: Setup .NET SDK
27+
uses: actions/setup-dotnet@v4
28+
env:
29+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
dotnet-version: |
32+
6.0.x
33+
7.0.x
34+
8.0.x
35+
source-url: https://nuget.pkg.github.com/open-feature/index.json
3536

36-
- name: Run Test
37-
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
37+
- name: Run Test
38+
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
3839

39-
- uses: codecov/[email protected]
40-
with:
41-
name: Code Coverage for ${{ matrix.os }}
42-
fail_ci_if_error: true
43-
verbose: true
40+
- uses: codecov/[email protected]
41+
with:
42+
name: Code Coverage for ${{ matrix.os }}
43+
fail_ci_if_error: true
44+
verbose: true

Diff for: .github/workflows/e2e.yml

+19-18
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ jobs:
1414
e2e-tests:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
2020

21-
- name: Setup .NET SDK
22-
uses: actions/setup-dotnet@v4
23-
env:
24-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
with:
26-
dotnet-version: |
27-
6.0.x
28-
7.0.x
29-
source-url: https://nuget.pkg.github.com/open-feature/index.json
21+
- name: Setup .NET SDK
22+
uses: actions/setup-dotnet@v4
23+
env:
24+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
dotnet-version: |
27+
6.0.x
28+
7.0.x
29+
8.0.x
30+
source-url: https://nuget.pkg.github.com/open-feature/index.json
3031

31-
- name: Initialize Tests
32-
run: |
33-
git submodule update --init --recursive
34-
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.E2ETests/Features/
32+
- name: Initialize Tests
33+
run: |
34+
git submodule update --init --recursive
35+
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.E2ETests/Features/
3536
36-
- name: Run Tests
37-
run: dotnet test test/OpenFeature.E2ETests/ --configuration Release --logger GitHubActions
37+
- name: Run Tests
38+
run: dotnet test test/OpenFeature.E2ETests/ --configuration Release --logger GitHubActions

Diff for: .github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
dotnet-version: |
3939
6.0.x
4040
7.0.x
41+
8.0.x
4142
source-url: https://nuget.pkg.github.com/open-feature/index.json
4243

4344
- name: Install dependencies

0 commit comments

Comments
 (0)