Commit graph

75 commits

Author SHA1 Message Date
Josh
301e5d0d32
Update Github Action versions (#1085)
* Update CI actions

* Update from deprecated Qodana actions version
2025-01-10 21:25:56 -06:00
Josh
2f4a162db3
Upgrade upload artifact action to v4 (#1080)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
2024-12-17 23:38:26 +00:00
Henry Asbridge
f1fe542656
Add config options to restrict signup on certain platforms (#1077)
Some checks failed
Continuous Integration / Build & Test (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* feat: add config options to restrict signup on certain platforms

* add isPSN extension to platform enum

* actually forbid on invalid sign-up attempt, and fix compiler warnings

* Fix code review suggestions

* Apply suggestions from code review

Co-authored-by: Josh <josh@slendy.pw>

* Fix qodana pipeline

---------

Co-authored-by: Josh <josh@slendy.pw>
2024-11-02 16:40:55 +00:00
qodana-cloud[bot]
b37be0d821
Add qodana CI checks (#1076)
Some checks failed
Continuous Integration / Build & Test (map[database:true fullName:ubuntu-latest prettyName:Linux webTest:true]) (push) Has been cancelled
Upload Translations to Crowdin / crowdin-sync (push) Has been cancelled
Build Docker Image / Build and Publish (push) Has been cancelled
Qodana / qodana (push) Has been cancelled
* Add qodana.yaml file

* Add github workflow file

* Update qodana.yaml

---------

Co-authored-by: Qodana Application <qodana-support@jetbrains.com>
Co-authored-by: Henry Asbridge <henry@vorax.org>
2024-10-10 20:08:41 +00:00
Slendy
81acde7485
Add manual trigger for Crowdin GitHub action 2024-09-29 19:28:13 -05:00
Ren
e8441c134b
Use Actions to build and publish Docker images to Github Container Registry (#1004)
* Create docker-publish.yml

* Update docker-publish.yml

* Now this should work

GitHub's own template is a little out of date, had to accommodate for this https://github.com/actions/starter-workflows/issues/2357

* updating to actions/checkout@v4

* Update docker-publish.yml

* Update do

Co-authored-by: sudokoko <koko@sudokoko.xyz>

* Update docker-publish.yml

Co-authored-by: sudokoko <koko@sudokoko.xyz>

* testing arm building

Co-authored-by: Zaprit <henry@vorax.org>

* an attempt to get this docker workflow to play nice with arm

* Revert "testing arm building"

This reverts commit a030b62f73.

* Revert "an attempt to get this docker workflow to play nice with arm"

This reverts commit 8faf3f4a5a.

* Minor nitpicky things before merge

Committing these directly as to not bother you with another code review. Adds a nice-name to the job and renames "build" to "build-publish".

---------

Co-authored-by: sudokoko <koko@sudokoko.xyz>
Co-authored-by: Zaprit <henry@vorax.org>
2024-03-30 04:36:19 +00:00
sudokoko
01e6fa191a
Update to .NET 8 and C# 12 (#952)
* Initial SDK and dependency bumps

* Bump Pomelo.EntityFrameworkCore.MySql to 8.0.0-beta.2

Should fix the MissingMethodException error in unit tests

* Update CI workflow to use .NET 8

* Apply suggested change from compile time warnings

* Fix digest tests

* Bump dependencies once more

* Update xunit

* Remove obsolete ISystemClock from TokenAuthHandler

* Update dependencies

* Add digest debug preprocessors back

* Maybe don't break #966

* Bump EF Driver and update various NET7 references

* Fix warnings in digest middleware tests

---------

Co-authored-by: Slendy <josh@slendy.pw>
2024-02-26 20:08:48 +00:00
Slendy
b0a57f05f9
Update crowdin actions 2023-05-31 15:09:47 -05:00
Slendy
4c6f2f0e16
Fix CI not running when it should 2023-05-15 15:06:08 -05:00
Josh
1bf4ed6218
Add more unit tests (#757)
* Reorganize tests into unit/integration pattern

* Make DbSets virtual so they can be overridden by tests

* Add MessageControllerTests

* Implement DigestMiddlewareTests

* Refactor SMTPHelper to follow DI pattern which allows for mocking in unit tests.

* Fix MailQueueService service registration and shutdown

* Implement tests for Status and StatisticsController and reorganize tests

* Start working on UserControllerTests

* Start refactoring tests to use In-Memory EF provider

* Refactor integration tests to reset the database every time
Change default unit testing database credentials

* Update credentials to use default root with different passwords

* Throw exception when integration db is not available instead of falling back to in-memory

* Evaluate DbConnected every time

* Remove default DbContext constructor

* Setup DbContexts with options builder

* Convert remaining Moq DbContexts to InMemory ones

* Add more tests and use Assert.IsType for testing status code

* Add collection attribute to LighthouseServerTest

* Remove unused directives and calculate digest in tests

* Fix digest calculation in tests

* Add test database call

* Clear rooms after each test

* Fix CommentControllerTests.cs

* Disable test parallelization for gameserver tests

* Fix failing tests

Fix SlotTests

Make CreateUser actually add user to database

Fix dbConnected Lazy and change expected status codes

Properly Remove fragment from url for digest calculation

Fix digest calculation for regular requests

[skip ci] Remove unused directive

Don't use Database CreateUser function

Get rid of userId argument for generating random user

Rewrite logic for generating random users

Fix integration tests

* Implement changes from self-code review

* Fix registration tests

* Replace MailQueueService usages with IMailService
2023-05-15 15:00:33 -05:00
Josh
20b2ef5700
Rework CI and add game server login tests (#615)
* Make tests run in release mode

* Fix multiple command in ci

* I forgot how yaml works

* Shitty workaround

* grr mondays

* Add an NP ticket builder for unit tests

* Add NP ticket unit testing

* Fix range indexers for finding uid

* Fix LoginTests

* Validate unit test signatures

* Make builder code follow same style conventions

* Remove remnant of hardcoded issuer id
2023-01-07 00:12:39 -06:00
Josh
f93c6dc8a2
Bump CI versions (#605) 2022-12-20 14:43:04 -06:00
Josh
d16132f67f
NET 7.0 support (#581)
* NET 7.0 support

* Bump Pomelo MySql to support EF7

* Its net7.0 time

* Trying to resolve dependencies by hand

* Fix .NET 7 warnings

* Bump InfluxDB version

* Fix bad null handling
2022-12-13 18:17:28 -06:00
Josh
6e72fcba62
Bump CI Actions' versions (#543)
* Bump github actions version

* Bump actions-setup-mysql version
2022-10-31 21:07:38 -05:00
Josh
6848664143
Update github actions to latest version 2022-10-15 13:48:25 -05:00
Jayden
c995933f1f
Only run crowdin jobs on master repo
Closes #432
2022-08-14 17:06:49 -04:00
jvyden
e6f845a616
Fix invalid branch name 2022-08-12 20:46:38 -04:00
jvyden
6c815df467
Split crowdin push and pull operation 2022-08-12 20:45:25 -04:00
jvyden
92c7f75404
Add schedule for crowdin sync 2022-08-12 20:38:39 -04:00
jvyden
fe5b57372e
Fix yaml syntax 2022-08-12 20:25:24 -04:00
jvyden
fdfd0f5f39
Run crowdin action on push to test 2022-08-12 20:23:23 -04:00
jvyden
80f025c913
Crowdin GitHub actions test 2022-08-12 20:21:54 -04:00
Jayden
4edf220ee6
Create issue template configuration 2022-08-12 14:33:55 -04:00
Jayden
ef2534b72e
Create issue templates 2022-08-12 14:31:53 -04:00
jvyden
3e7a5910cd
Optimize CI job by skipping building on tests 2022-05-15 16:30:23 -04:00
jvyden
de6226b0be
[skip ci] Remove Windows CI Job
It's clear that Windows builds provide no meaningful input. They are a lot slower and do less than a normal Linux build, so lets just remove it for now.
2022-04-05 16:48:21 -04:00
jvyden
78240b16d3
Add dependabot support 2022-02-04 23:03:55 -05:00
jvyden
b7a86e7b98
Remove macOS Build & Test 2022-01-20 21:51:09 -05:00
jvyden
89857b99bc
Upload individual test log files 2021-12-23 00:47:23 -05:00
jvyden
bbaccef2e6
Only do CI WebsiteTests on Linux 2021-12-23 00:42:21 -05:00
jvyden
d1a13c1496
Don't create a status check on CI (breaks prs) 2021-12-22 17:21:47 -05:00
jvyden
0208526850
[skip ci] Always process test results 2021-12-22 17:06:03 -05:00
jvyden
d16b56976a
Update process test results ci step 2021-12-22 17:03:03 -05:00
jvyden
dc429f2c8a
Use im-open/process-dotnet-test-results@v2.0.1 2021-11-18 15:31:37 -05:00
jvyden
bdccb201ae
Switch to .NET 6.0 2021-11-13 11:02:19 -05:00
jvyden
f3f01ec45e
Make CI run on pull_request 2021-11-02 19:07:06 -04:00
jvyden
173addfd03
Re-do formatting 2021-10-31 16:46:56 -04:00
jvyden
a009dda816
[skip ci] Don't cancel previous workflows 2021-10-27 01:35:41 -04:00
jvyden
3edb798e7d
Run MySQL steps before .NET steps 2021-10-18 23:02:07 -04:00
jvyden
97365de016
Add space between -h flag for create db step 2021-10-18 23:01:21 -04:00
jvyden
a7a33bf758
[skip ci] Specify env.DB_USER instead of user manually 2021-10-18 22:56:13 -04:00
jvyden
fbeaa303bf
Add CI step to create lighthouse database 2021-10-18 22:53:47 -04:00
jvyden
5a48786ba4
Remove database migration step from ci, enable database on Windows 2021-10-18 22:46:32 -04:00
jvyden
36d6255a72
CI Adjustments: only run on push, only submit data from process-dotnet-test-results on linux 2021-10-18 18:11:36 -04:00
jvyden
c52623d743
Disable database on windows 2021-10-16 22:29:31 -04:00
jvyden
1a69ea9610
Fix Start MySQL not checking matrix.os.database 2021-10-16 22:25:09 -04:00
jvyden
ecbb0c59e1
Enable MySQL on Mac and Windows 2021-10-16 22:24:42 -04:00
jvyden
f8be5f9b9b
Don't attempt to create root user 2021-10-16 22:21:40 -04:00
jvyden
d4e9fec993
Use root account for MySQL stuff 2021-10-16 22:19:43 -04:00
jvyden
470ea2db7f
Force TCP again 2021-10-16 22:13:04 -04:00