-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* restructuring docker builds, removing accessibility plugin since it seems to be failing to build for production * abstracting base url for the api * correcting URLs * added jest to package * increasing log level * changed direct file paths to assets to import statements * added env development to dockerignore * Removed unneccessary comments * all tests pass, wicked * adding readme * add badges to readme and add matrix for os types * add matrix to dotnet workflow * doi badge * remove extra DOI badge * readme changes * undoing port changes * Changed connection to db for tests * a single test passes * Added tests for species controller * codecov uses cobertura * Add controller tests * new default guid * Moved files to Test file * moved Properties Controller Tests * add empty files for future tests * added get user by email and by id * added time service * correcting warnings, correcting filename * trying to forward requests * things * adding production database connection * default database port * logging connection string * copying in the production env file * removing debug statement * add tests for backend coverage * update codecov file * fix npm build -> npm run build * fix assertion * added working directory - codecov * Add tests for GetMethods * add lcov format for test * removed context * Remove coverage gitignore * changed file names for codecov compatibility * moved codecoe.yml * Fix Default branch * remove upload from npm_build_test.yml * removed extra coverage files --------- Co-authored-by: Kyle Shores <[email protected]> Co-authored-by: JoshHare <[email protected]> Co-authored-by: JoshHare <[email protected]> Co-authored-by: BrittExe <[email protected]> Co-authored-by: oreogunleye24 <[email protected]>
- Loading branch information
1 parent
9f44301
commit 9a335f1
Showing
85 changed files
with
37,969 additions
and
402 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: Codecov Coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checkout code | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# Setup .NET environment | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
# Restore dependencies | ||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ./frontend | ||
|
||
# Build the project | ||
- name: Build | ||
run: npm run build | ||
working-directory: ./frontend | ||
|
||
# Step 5: Run tests and collect code coverage | ||
- name: Test and calculate coverage | ||
run: npm run test:coverage | ||
working-directory: ./frontend | ||
|
||
|
||
# Step 6: Upload the code coverage report to Codecov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # Add the Codecov token in the GitHub secrets | ||
files: ./frontend/coverage/lcov.info # Ensure the correct path for the coverage file | ||
flags: vite-tests | ||
fail_ci_if_error: true | ||
# # Setup .NET environment | ||
# - name: Setup .NET | ||
# uses: actions/setup-dotnet@v3 | ||
# with: | ||
# context: ./backend | ||
# dotnet-version: 6.0.x # Use the version your project requires | ||
|
||
# # Restore dependencies | ||
# - name: Restore dependencies | ||
# run: dotnet restore ./backend | ||
|
||
# # Build the project | ||
# - name: Build | ||
# run: dotnet build ./backend --no-restore | ||
|
||
# # Step 5: Run tests and collect code coverage | ||
# - name: Test and calculate coverage | ||
# run: | | ||
# dotnet test ./backend --no-build --verbosity normal --logger "console;verbosity=detailed" \ | ||
# /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura | ||
# /p:CoverletOutput=./TestResults/coverage.cobertura.xml | ||
|
||
|
||
# # Step 6: Upload the code coverage report to Codecov | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v4 | ||
# with: | ||
# context: ./backend | ||
# token: ${{ secrets.CODECOV_TOKEN }} # Add the Codecov token in the GitHub secrets | ||
# files: ./TestResults/coverage.opencover.xml # Ensure the correct path for the coverage file | ||
# flags: unittests | ||
# fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ dist-ssr | |
*.sw? | ||
|
||
node_modules/ | ||
/coverage | ||
# /coverage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
codecov: | ||
max_report_age: off | ||
codecov: | ||
branch: AddTests # set new Default branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ dist-ssr | |
*.sw? | ||
|
||
node_modules/ | ||
/coverage | ||
# /coverage |
Oops, something went wrong.