Skip to content

Commit

Permalink
Merge pull request #653 from Enterprise-CMCS/master
Browse files Browse the repository at this point in the history
Release to val
  • Loading branch information
mdial89f authored Jul 17, 2024
2 parents f5d9782 + cbe0e15 commit daf4e8c
Show file tree
Hide file tree
Showing 50 changed files with 2,097 additions and 1,310 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,21 @@ jobs:
role-duration-seconds: 10800

- name: Test
run: yarn test-ci
run: run test --coverage

- name: Save coverage as a workflow artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: coverage

- name: Report coverage to Code Climate
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: coverage/lcov.info:lcov

e2e:
timeout-minutes: 5
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/pr-coverage-annotation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR - coverage annotation

on:
pull_request:
branches:
- main

jobs:
coverage-report:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Test
run: run test --coverage
- name: Report Coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2
27 changes: 0 additions & 27 deletions .github/workflows/unit-tests.yml

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<a href="https://codeclimate.com/github/Enterprise-CMCS/macpro-mako/maintainability">
<img src="https://api.codeclimate.com/v1/badges/f4480e77af640e6fa864/maintainability" />
</a>
<a href="https://codeclimate.com/github/Enterprise-CMCS/macpro-mako/test_coverage">
<img src="https://api.codeclimate.com/v1/badges/f4480e77af640e6fa864/test_coverage" />
</a>
<a href="https://snyk.io/">
<img alt="Snyk" src="https://img.shields.io/badge/Snyk-protected-purple">
</a>
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
"test": "tests"
},
"scripts": {
"test": "turbo test",
"test-ci": "turbo test",
"lint": "turbo lint",
"build:cli": "turbo build:cli",
"test:watch": "turbo test:watch",
"test:gui": "turbo test:gui",
"e2e": "turbo e2e",
"e2e:ui": "turbo e2e:ui",
"test-tsc": "tsc --skipLibCheck --noEmit"
"test-tsc": "tsc --skipLibCheck --noEmit",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui"
},
"repository": "https://github.com/Enterprise-CMCS/macpro-mako",
"workspaces": [
Expand All @@ -41,11 +40,13 @@
"@testing-library/react": "^14.0.0",
"@types/uuid": "^9.0.1",
"@vitest/coverage-c8": "^0.29.8",
"@vitest/ui": "^0.29.8",
"@vitest/coverage-istanbul": "^2.0.2",
"@vitest/coverage-v8": "^2.0.2",
"@vitest/ui": "^2.0.2",
"aws-sdk-client-mock": "^2.0.1",
"esbuild": "^0.19.3",
"prettier": "3.2.5",
"msw": "^2.2.1",
"prettier": "3.2.5",
"semantic-release": "^21.0.1",
"serverless": "^3.38.0",
"serverless-disable-functions": "^1.0.0",
Expand All @@ -56,7 +57,7 @@
"serverless-scriptable-plugin": "^1.3.1",
"serverless-stack-termination-protection": "^2.0.2",
"turbo": "^1.9.3",
"vitest": "^0.30.1"
"vitest": "^2.0.2"
},
"release": {
"branches": [
Expand Down
Loading

0 comments on commit daf4e8c

Please sign in to comment.