Skip to content

Commit 1710c46

Browse files
committed
feat: add lint and build to workflow
1 parent f10d10d commit 1710c46

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,17 @@ jobs:
4444
with:
4545
node-version: ${{ matrix.node }}
4646

47+
- name: Install dependencies
48+
run: npm ci
49+
50+
- name: Lint files
51+
run: npm run lint
52+
53+
- name: Validate build
54+
run: npm run build
55+
4756
- name: Run tests
48-
run: |
49-
npm clean-install
50-
npm run test:coverage
57+
run: npm run test:coverage
5158

5259
- name: Upload coverage reports to Codecov
5360
uses: codecov/codecov-action@v3

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,63 +63,63 @@ Contribute to the community in a positive and thoughtful way. Consider what’s
6363

6464
Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
6565

66-
# Additional rules for online spaces
66+
## Additional rules for online spaces
6767

6868
For Deepgram’s official online spaces, like our YouTube & Twitch chats, we have some additional rules. Any of the following behaviors can result in a ban without warning.
6969

70-
## DON'T SPAM
70+
### DON'T SPAM
7171

7272
Don't spam. We'll ban you.
7373

74-
## KEEP IT LEGAL
74+
### KEEP IT LEGAL
7575

7676
If it’s illegal, it’s not allowed on our websites or in our online spaces. Please don’t share links to pirated material or other nefarious things.
7777

78-
## NO TROLLING
78+
### NO TROLLING
7979

8080
Please be earnest. Don’t use excessive sarcasm to annoy or undermine other people. And don’t bait them with bad faith comments or abuse.
8181

82-
## PORNOGRAPHY AND OTHER NSFW STUFF
82+
### PORNOGRAPHY AND OTHER NSFW STUFF
8383

8484
Please don’t post it or link to it. It doesn’t belong in our online spaces.
8585

86-
## FOUL AND GRAPHIC LANGUAGE
86+
### FOUL AND GRAPHIC LANGUAGE
8787

8888
Please do not use excessive curse words. Additionally, do not use graphic sexual or violent language — again, think of our spaces as places for people of all ages.
8989

90-
# Enforcement & Reporting
90+
## Enforcement & Reporting
9191

9292
If you are being harassed by a member of the Deepgram developer community, if you observe someone else being harassed, or you experience actions or behaviors that are contrary to our Code of Conduct, please report the behavior using our [Code of Conduct Report Form](https://developers.deepgram.com/code-of-conduct/report-form/).
9393

94-
## Enforcement Guidelines
94+
### Enforcement Guidelines
9595

9696
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
9797

98-
### 1. Correction
98+
#### 1. Correction
9999

100100
**_Community Impact:_** Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
101101

102102
**_Consequence:_** A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
103103

104-
### 2. Warning
104+
#### 2. Warning
105105

106106
**_Community Impact:_** A violation through a single incident or series of actions.
107107

108108
**_Consequence:_** A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
109109

110-
### 3. Temporary Ban
110+
#### 3. Temporary Ban
111111

112112
**_Community Impact:_** A serious violation of community standards, including sustained inappropriate behavior.
113113

114114
**_Consequence:_** A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
115115

116-
### 4. Permanent Ban
116+
#### 4. Permanent Ban
117117

118118
**_Community Impact:_** Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
119119

120120
**_Consequence:_** A permanent ban from any sort of public interaction within the community.
121121

122-
# Attribution
122+
## Attribution
123123

124124
This Code of Conduct is adapted from:
125125

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"build:main": "tsc -p tsconfig.json",
4545
"build:module": "tsc -p tsconfig.module.json",
4646
"build:umd": "webpack --mode=production",
47+
"lint": "run-s lint:*",
4748
"lint:js": "eslint --no-eslintrc -c .eslintrc-examples.js examples --max-warnings 0",
4849
"lint:md": "markdownlint **/*.md *.md",
4950
"lint:yml": "yamllint .github/workflows",

0 commit comments

Comments
 (0)