Skip to content

Commit

Permalink
Add CI setup (#19)
Browse files Browse the repository at this point in the history
* Added CI workflow

* Fixed format
  • Loading branch information
MrRibcage authored Jun 29, 2024
1 parent 9da440e commit bb36775
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
'on':
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: |
npm install
- name: Run Prettier
run: |
npm run check
- name: Run tests
run: |
npm run test
4 changes: 1 addition & 3 deletions src/discord/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export const sendDiscordItemMessage = async (
const sectionHeader = formatMessageSectionTitle(section.title);
const sectionItems = section.items
.map((item) =>
section.includeLinks
? formatItemWithLink(item)
: formatItem(item),
section.includeLinks ? formatItemWithLink(item) : formatItem(item),
)
.join("\n");
return `${sectionHeader} ${sectionItems}`;
Expand Down

0 comments on commit bb36775

Please sign in to comment.