feat: codecov (#8219)

This commit is contained in:
ckohen
2022-07-03 06:33:18 -07:00
committed by GitHub
parent d95197cc78
commit f10f4cdcd8
13 changed files with 96 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
"description": "A set of actions that we use for our workflows",
"private": true,
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache"

View File

@@ -0,0 +1,52 @@
name: 'Upload Coverage'
description: 'Uploads code coverage reports to codecov with separate flags for separate packages'
runs:
using: 'composite'
steps:
- name: Upload Builders Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/builders/coverage/clover.xml
flags: builders
- name: Upload Collection Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/collection/coverage/clover.xml
flags: collection
- name: Upload Discord.js Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/discord.js/coverage/clover.xml
flags: discord.js
- name: Upload Proxy Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/proxy/coverage/clover.xml
flags: proxy
- name: Upload Rest Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/rest/coverage/clover.xml
flags: rest
- name: Upload Voice Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/voice/coverage/clover.xml
flags: voice
- name: Upload Website Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/website/coverage/clover.xml
flags: website
- name: Upload Utilities Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/actions/coverage/clover.xml, ./packages/docgen/coverage/clover.xml, ./packages/scripts/coverage/clover.xml
flags: utilities

View File

@@ -3,6 +3,7 @@
"version": "0.16.0-dev",
"description": "A set of builders that you can use when creating your bot",
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache",

View File

@@ -3,6 +3,7 @@
"version": "0.8.0-dev",
"description": "Utility data structure used in discord.js",
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache",

View File

@@ -3,6 +3,7 @@
"version": "0.12.0-dev",
"description": "The docs.json generator for discord.js and its related projects",
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src --ext mjs,js,ts --fix --cache",

View File

@@ -3,6 +3,7 @@
"version": "1.0.0-dev",
"description": "Tools for running an HTTP proxy for Discord's API",
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache",

View File

@@ -3,6 +3,7 @@
"version": "0.6.0-dev",
"description": "The REST API for discord.js",
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src __tests__ --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src __tests__ --ext mjs,js,ts --fix --cache",

View File

@@ -4,6 +4,7 @@
"description": "A set of scripts that we use for our workflows",
"private": true,
"scripts": {
"test": "vitest run",
"build": "tsup",
"lint": "prettier --cache --check . && eslint src --ext mjs,js,ts --cache",
"format": "prettier --cache --write . && eslint src --ext mjs,js,ts --fix --cache"

View File

@@ -4,6 +4,7 @@
"description": "A set of builders that you can use when creating your bot",
"private": true,
"scripts": {
"test": "vitest run",
"build": "yarn build:css && yarn build:remix",
"build:css": "yarn generate:css",
"build:remix": "remix build",