Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release to val #653

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/codeclimate-action@v8.0.0
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
Loading