mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
* chore: init /structures * feat: base structure * feat: initial structures design attempt * refactor(Structure): use unknown to store in kData * feat(Structure): add Invite refactor(Structure): patch to _patch * refactor: symbol names and override location * fix: don't possibly return 0 if discord borks Co-authored-by: Synbulat Biishev <signin@syjalo.dev> * refactor: use getter value instead of api Co-authored-by: Synbulat Biishev <signin@syjalo.dev> * refactor: cache createdTimestamp value Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> * docs: better docs for what's done so far * feat: add Mixin * refactor(User): remove bitfield getters and add displayName * feat(structures): add Connection * feat(structures): add Channel base * refactor(Mixin): trace prototype chain, allow construction * fix(structures): fix mixin behavior * fix(structures): data optimization call behavior from perf testing * feat: channel mixins * chore: update deps * feat: channels and mixins * chore: more typeguard tests * fix: tests and some other issues * feat: add ChannelWebhookMixin * fix: more tests * chore: tests and docs * chore: docs * fix: remove unneccessary omitted * chore: apply code suggestions * refactor: change how extended invite works * fix: type imports * Apply suggestions from code review Co-authored-by: Almeida <github@almeidx.dev> * fix: tests * chore: add jsdoc * refactor: apply code suggestions * fix: don't instantiate sub-structures * fix: don't do null default twice * chore: use formatters, add _cache * chore: lockfile * chore: move MixinTypes to declaratiion file * fix: tests * fix: don't include source d.ts files for docs * feat: bitfields * feat: more bitfields * refactor: remove DirectoryChannel structure * chore: apply suggestions from code review * chore: remove unused import * refactor: use symbol for mixin toJSON, remove _ prefix * chore: apply suggestions from code review * refactor: remove bitfield casts * refactor: remove special case for threadchannel types * fix: apply code review suggestions * refactor: bitfields always store bigint * fix: tests * chore: apply suggestions from code review * fix: lint * refactor: conditional structuredClone * Apply suggestions from code review Co-authored-by: ckohen <chaikohen@gmail.com> * fix: code review errors * fix: lint * chore: bump dtypes * Update packages/structures/cliff.toml Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> * docs: link to VideoQualityMode * chore: typo in comment * chore: small nits in docs links * chore: small nits * docs: forgot one * chore: update template * chore: typos and things * chore: apply suggestions from code review * fix: tests and typeguards * chore: don't clone appliedTags * refactor: use a symbol for patch method * fix: add missing readonly * chore: remove todo comment * refactor: use symbol for clone * fix: add constraint to DataType * chore: apply suggestions * fix: dtypes bump * chore: fix comment * chore: add todo comment * chore: mark bitfield as todo chore: mark bit field as todo and edit readme --------- Co-authored-by: ckohen <chaikohen@gmail.com> Co-authored-by: Synbulat Biishev <signin@syjalo.dev> Co-authored-by: Almeida <github@almeidx.dev> Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
135 lines
4.8 KiB
YAML
135 lines
4.8 KiB
YAML
name: 'Upload Coverage'
|
|
description: 'Uploads code coverage reports to codecov with separate flags for separate packages'
|
|
inputs:
|
|
codecov_token:
|
|
description: 'Codecov token.'
|
|
required: true
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Upload Brokers Coverage
|
|
if: ${{ hashFiles('packages/brokers/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/brokers/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: brokers
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Builders Coverage
|
|
if: ${{ hashFiles('packages/builders/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/builders/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: builders
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Collection Coverage
|
|
if: ${{ hashFiles('packages/collection/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/collection/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: collection
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Core Coverage
|
|
if: ${{ hashFiles('packages/core/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/core/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: core
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Discord.js Coverage
|
|
if: ${{ hashFiles('packages/discord.js/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/discord.js/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: discord.js
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Formatters Coverage
|
|
if: ${{ hashFiles('packages/formatters/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/formatters/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: formatters
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Next Coverage
|
|
if: ${{ hashFiles('packages/next/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/next/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: next
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Proxy Coverage
|
|
if: ${{ hashFiles('packages/proxy/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/proxy/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: proxy
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Rest Coverage
|
|
if: ${{ hashFiles('packages/rest/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/rest/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: rest
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Structures Coverage
|
|
if: ${{ hashFiles('packages/structures/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/structures/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: structures
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Util Coverage
|
|
if: ${{ hashFiles('packages/util/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/util/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: util
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Voice Coverage
|
|
if: ${{ hashFiles('packages/voice/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/voice/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: voice
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload WS Coverage
|
|
if: ${{ hashFiles('packages/ws/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/ws/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: ws
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|
|
|
|
- name: Upload Utilities Coverage
|
|
if: ${{ hashFiles('packages/actions/coverage/cobertura-coverage.xml') != '' }}
|
|
uses: codecov/codecov-action@v4
|
|
with:
|
|
files: ./packages/actions/coverage/cobertura-coverage.xml
|
|
disable_search: true
|
|
flags: utilities
|
|
token: ${{ inputs.CODECOV_TOKEN }}
|