Skip to content
Open
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d5e548f
Changes
asbjornvad Jun 23, 2024
d2fbe75
Changes
asbjornvad Jun 23, 2024
01c8f2e
More changes
asbjornvad Jun 23, 2024
22b5d7b
All sorts of changes. Comments or changes that actually does have an …
asbjornvad Jul 1, 2024
7418ac1
Unloaded ASP and old version of RiotSharp.
asbjornvad Jul 6, 2024
ee8a336
Removed internal constructors in all the "JSON" classes
asbjornvad Jul 6, 2024
d99aae2
Outcomment yml-files
asbjornvad Jul 6, 2024
0da6325
Deleted Build.Props as i dont think its needed
asbjornvad Jul 6, 2024
7304f90
Changes to some of the Misc files. Removed some warnings here and there.
asbjornvad Sep 1, 2024
632f7d9
Done work on the RequesterBase, ApplicationRateLimiter, RateLimitedRe…
asbjornvad Nov 24, 2024
51371ff
Started work on methodratelimiter but not yet done. Both Method and A…
asbjornvad Mar 12, 2025
3a8bb6a
Trying a new workflow
asbjornvad Mar 12, 2025
43a3805
Unloaded old testproject
asbjornvad Mar 12, 2025
ce1237c
Changes to solution. Hopefully the old projects are no longer build.
asbjornvad Mar 12, 2025
a0cd7a6
The Cache is now called InMemoryCache and uses IMemoryCache to cache.…
asbjornvad Mar 13, 2025
0b7e5af
Moved requesters and unloaded several of the old implementations. A l…
asbjornvad Mar 13, 2025
6d18fa1
Initial convertion of endpoints to use the new RateLimiting system. C…
asbjornvad May 30, 2025
2909ee8
Refactor and enhance RiotSharpNET8 for clarity and API updates
asbjornvad Jun 1, 2025
70a70b2
Refactor and enhance RiotSharpNET8 for clarity and API updates
asbjornvad Jun 1, 2025
d5daa23
Possibly fixed the pipeline.
asbjornvad Jun 1, 2025
d89b3de
Small changes. Removed unused files.
asbjornvad Jun 16, 2025
8b8d63f
Moved everything to src folder like it always should have been.
asbjornvad Jun 16, 2025
090e98d
Update dotnet.yml
asbjornvad Jun 16, 2025
9aea2d0
Added most of the files needed in Core.
asbjornvad Jun 16, 2025
6a9d60b
Merge branch 'refactor' of https://github.com/asbjornvad/RiotSharpFun…
asbjornvad Jun 16, 2025
86e82d1
Update .gitignore and remove hardcoded API key
asbjornvad Jun 21, 2025
1a21b16
Add Champion Mastery API and refactor namespaces
asbjornvad Jun 21, 2025
f774ce3
Trying local nuget stuff
asbjornvad Jun 21, 2025
31a0a69
Trying to fix broken pipeline
asbjornvad Jun 21, 2025
35cfdbe
Still trying to fix the pipeline
asbjornvad Jun 21, 2025
cbad274
Still trying to fix. Think this is it.
asbjornvad Jun 21, 2025
12c2cca
This is it
asbjornvad Jun 21, 2025
31ede66
Added new Account project and implemented endpoints. Needs testing to…
asbjornvad Jun 22, 2025
f508ebc
Account endpoints added and tested somewhat.
asbjornvad Jun 30, 2025
f9e174a
Account endpoints added and tested somewhat.
asbjornvad Jun 30, 2025
827c645
Implemented classes that hold the endpoints and are the way to access…
asbjornvad Jul 5, 2025
0edce3d
Refactored the testfixture and is now a shared collection for all tests.
asbjornvad Jul 8, 2025
2abc4dc
Implemented Clash endpoint and refactored some namespaces.
asbjornvad Jul 8, 2025
c522274
League endpoint implemented and initial testing written.
asbjornvad Jul 13, 2025
c11fa78
Access to all endpoints in LeagueEndpoint
asbjornvad Jul 20, 2025
586ee59
Namespace fix and outputpath for local nuget package.
asbjornvad Jan 9, 2026
3d9dc6a
Starting work on ChallengesEndpoint. Restructure other endpoints to h…
asbjornvad Jan 9, 2026
d46a82c
Challenges endpoint done. minor changes to the langauge enum. Minor c…
asbjornvad Jan 10, 2026
bc7fd81
Status endpoint implemented. Crude but i dont think it will be used e…
asbjornvad Jan 10, 2026
844dafb
Unfinished Match endpoint. Wow riot, fix your docs man!!!
asbjornvad Jan 16, 2026
0ec77d5
Pipeline fix
asbjornvad Jan 17, 2026
23fac7d
This commit got a bit big...
asbjornvad Jan 19, 2026
bb8c479
Testing the pipeline with real api key secret.
asbjornvad Jan 19, 2026
d4eb3fb
Unloaded old projects
asbjornvad Jan 19, 2026
b7217f5
Test of package cache
asbjornvad Jan 19, 2026
2e50ba8
Caching requires lock.json so not viable
asbjornvad Jan 19, 2026
53ca544
More actions stuff. This should now allow me to create a release that…
asbjornvad Jan 20, 2026
4f91381
Should be sequential now.
asbjornvad Jan 20, 2026
8942fd8
Removed old unused stuff.
asbjornvad Jan 20, 2026
382c7dd
New action that is for single package push to nuget.
asbjornvad Jan 22, 2026
93ebc4e
Github actions fix.
asbjornvad Jan 24, 2026
8b6f13d
Changes to the cache interface, and updated the tests. Random AI-gene…
asbjornvad Jan 24, 2026
91ac708
Added TODO implement RSO. Added a FakeClock for testing in the cache.…
asbjornvad Jan 26, 2026
eaa8306
RateLimiter test now completes in <1 second thanks to some freaky ref…
asbjornvad Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: build-and-test

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

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore src/RiotSharp.sln

- name: Build
run: dotnet build src/RiotSharp.sln --no-restore --configuration Release

- name: Test
run: dotnet test src/RiotSharp.sln --no-build --configuration Release --verbosity normal -e API_KEY=${{secrets.RIOT_API_KEY}} #--filter "Category!=OnlyLocal"
38 changes: 0 additions & 38 deletions .github/workflows/nuget_action.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/push_release_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: push-release-nuget

on:
release:
types: [published]

jobs:
# same as build-and-test job in build_and_test.yml
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore src/RiotSharp.sln

- name: Build
run: dotnet build src/RiotSharp.sln --no-restore --configuration Release

- name: Test
run: dotnet test src/RiotSharp.sln --no-build --configuration Release --verbosity normal -e API_KEY=${{secrets.RIOT_API_KEY}} #--filter "Category!=OnlyLocal"

# should only run if build-and-test is successful
push-nuget:
needs: build-and-test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Pack NuGet packages
run: dotnet pack src/RiotSharp.sln --configuration Release -p:PackageVersion=${{ github.ref_name }} --output ./nupkgs

- name: Push to NuGet
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

58 changes: 58 additions & 0 deletions .github/workflows/push_single_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish Single NuGet Package

on:
workflow_dispatch:
inputs:
project:
description: 'Project to publish'
required: true
type: choice
options:
- Core
- Account
- LeagueOfLegends
version:
description: 'Version (x.x.x)'
required: true
type: string

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: |
dotnet restore src/RiotSharp.${{ github.event.inputs.project }}/RiotSharp.${{ github.event.inputs.project }}.csproj
dotnet restore src/RiotSharp.${{ github.event.inputs.project }}.Tests/RiotSharp.${{ github.event.inputs.project }}.Tests.csproj

- name: Build
run: |
dotnet build src/RiotSharp.${{ github.event.inputs.project }}/RiotSharp.${{ github.event.inputs.project }}.csproj --no-restore --configuration Release
dotnet build src/RiotSharp.${{ github.event.inputs.project }}.Tests/RiotSharp.${{ github.event.inputs.project }}.Tests.csproj --no-restore --configuration Release

- name: Test
run: dotnet test src/RiotSharp.${{ github.event.inputs.project }}.Tests/RiotSharp.${{ github.event.inputs.project }}.Tests.csproj --no-build --configuration Release --verbosity normal -e API_KEY=${{ secrets.RIOT_API_KEY }}

publish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Pack NuGet package
run: dotnet pack src/RiotSharp.${{ github.event.inputs.project }}/RiotSharp.${{ github.event.inputs.project }}.csproj --configuration Release -p:PackageVersion=${{ github.event.inputs.version }} --output ./nupkgs

- name: Push to NuGet
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ TestResults/
*.nupkg
.vs/
project.lock.json
.vscode/
.vscode/
*.user

/src/RiotSharp.LeagueOfLegends.Tests/appsettings.json
/src/RiotSharpNET8.Test/appsettings.json
/src/RiotSharp.Account.Tests/appsettings.json
6 changes: 0 additions & 6 deletions .nuget/NuGet.Config

This file was deleted.

Binary file removed .nuget/NuGet.exe
Binary file not shown.
144 changes: 0 additions & 144 deletions .nuget/NuGet.targets

This file was deleted.

10 changes: 0 additions & 10 deletions Directory.Build.props

This file was deleted.

16 changes: 0 additions & 16 deletions PIPELINES.md

This file was deleted.

Loading