Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
change github action
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Dec 15, 2023
1 parent b8f3793 commit f7b4324
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: install dependencies
working-directory: ./intro to react/vite-project
run: sudo npm install
- name: install jest globally
run: sudo npm install -g jest
- name: run tests
working-directory: ./intro to react/vite-project
run: sudo npm test
- uses: sonarsource/sonarqube-scan-action@master
env:
Expand Down
4 changes: 2 additions & 2 deletions intro to react/vite-project/coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1702632563791" clover="3.2.0">
<project timestamp="1702632563791" name="All files">
<coverage generated="1702632791356" clover="3.2.0">
<project timestamp="1702632791356" name="All files">
<metrics statements="38" coveredstatements="37" conditionals="6" coveredconditionals="5" methods="11" coveredmethods="11" elements="55" coveredelements="53" complexity="0" loc="38" ncloc="38" packages="1" files="2" classes="2"/>
<file name="navBar.tsx" path="/Users/nial/Documents/TSI/intro to react/vite-project/src/navBar.tsx">
<metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-15T09:29:23.724Z
at 2023-12-15T09:33:11.305Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ <h1><a href="index.html">All files</a> navBar.tsx</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-15T09:29:23.724Z
at 2023-12-15T09:33:11.305Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ <h1><a href="index.html">All files</a> newsList.tsx</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-15T09:29:23.724Z
at 2023-12-15T09:33:11.305Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
12 changes: 6 additions & 6 deletions intro to react/vite-project/test-report.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<testExecutions version="1">
<file path="/Users/nial/Documents/TSI/intro to react/vite-project/test/test_newsList.test.js">
<testCase name="NewsList renders loading state initially" duration="4"/>
<testCase name="NewsList renders news items after data fetching" duration="28"/>
</file>
<file path="/Users/nial/Documents/TSI/intro to react/vite-project/test/test_navBar.test.js">
<testCase name="NavBar component renders the navbar" duration="25"/>
<testCase name="NavBar component renders the navbar" duration="28"/>
<testCase name="NavBar component updates the query state when the search changes" duration="14"/>
<testCase name="NavBar component calls sendQueryToParent when the search button is clicked" duration="7"/>
<testCase name="NavBar component calls sendQueryToParent when the search button is clicked" duration="10"/>
</file>
<file path="/Users/nial/Documents/TSI/intro to react/vite-project/test/test_newsList.test.js">
<testCase name="NewsList renders loading state initially" duration="2"/>
<testCase name="NewsList renders news items after data fetching" duration="27"/>
</file>
</testExecutions>

0 comments on commit f7b4324

Please sign in to comment.