diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac050ff..01b910c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI script -on: push +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] jobs: lint: @@ -37,4 +41,24 @@ jobs: run: vercel pull --yes --token=${{ secrets.VERCEL_AUTH_TOKEN }} - name: 📦 Build staging app artifacts - run: vercel build --token=${{ secrets.VERCEL_AUTH_TOKEN }} \ No newline at end of file + run: vercel build --token=${{ secrets.VERCEL_AUTH_TOKEN }} + + test-coverage: + name: SonarCloud + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: 🏗 Install dependencies + run: yarn + + - name: 📦 Test and coverage + run: yarn coverage + + - name: 📦 SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 0783c96..ee195f9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,13 @@
+ {{ getEventName((item as Event).event) }} +
++ {{ + isValidDeposit(item) + ? item.remaining + : getAmountFormatted(item.args?.amount) + }} + BRZ +
+20/08/2022
+