Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SenchaProSvcs/UnitTestDemo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: dbrin/UnitTestDemo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Feb 22, 2021

  1. Create build.yml

    Adding SonarCloud scan
    dbrin authored Feb 22, 2021
    Copy the full SHA
    5b41648 View commit details
  2. Copy the full SHA
    4277db6 View commit details
  3. Update README

    dbrin authored Feb 22, 2021
    Copy the full SHA
    5da4895 View commit details
Showing with 33 additions and 1 deletion.
  1. +20 −0 .github/workflows/build.yml
  2. +1 −1 README
  3. +12 −0 sonar-project.properties
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: SonarBuild
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
An small example of unit testing an Ext JS application.
An small example of unit testing an Ext JS application. test

Refer to the Sencha blog for more details:
- http://www.sencha.com/blog/automating-unit-tests
12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sonar.projectKey=dbrin_UnitTestDemo
sonar.organization=dbrin

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=UnitTestDemo
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8