Skip to content

Commit

Permalink
Merge branch 'main' into add-dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj authored May 13, 2024
2 parents c813cb0 + 5dc98b2 commit 19f185d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/maintainers_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ deno task test
You can also run a test coverage report with:

```zsh
deno task coverage
deno task test:coverage
```

### Lint and format
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
Expand All @@ -23,9 +23,18 @@ jobs:
run: deno task test

- name: Generate CodeCov-friendly coverage report
run: deno task coverage
run: deno task generate-lcov

- name: Upload coverage to CodeCov
uses: codecov/codecov-action@v3.1.0
uses: codecov/codecov-action@v4
with:
file: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

- name: Report health score
uses: slackapi/slack-health-score@v0
with:
codecov_token: ${{ secrets.FILS_CODECOV_API_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
extension: ts
include: src
3 changes: 2 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
},
"tasks": {
"test": "deno fmt --check && deno lint && deno test",
"coverage": "deno test --coverage=.coverage && deno coverage --exclude=fixtures --exclude=test --exclude=scripts --exclude=src/generated --lcov --output=lcov.info .coverage && deno run --allow-read https://deno.land/x/[email protected]/cli.ts"
"generate-lcov": "rm -rf .coverage && deno test --reporter=dot --coverage=.coverage && deno coverage --exclude=fixtures --exclude=test --exclude=scripts --exclude=src/generated --lcov --output=lcov.info .coverage",
"test:coverage": "deno task generate-lcov && deno coverage --exclude=fixtures --exclude=test --exclude=scripts --exclude=src/generated .coverage src"
},
"lock": false
}
2 changes: 2 additions & 0 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# deno-slack-api

[![codecov](https://codecov.io/gh/slackapi/deno-slack-api/graph/badge.svg?token=QKJCI23P5S)](https://codecov.io/gh/slackapi/deno-slack-api)

Slack API Client for Deno Run on Slack projects

```ts
Expand Down

0 comments on commit 19f185d

Please sign in to comment.