codecov on CI to use use_oidc #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checking | |
on: push | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v4 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Run linter | |
run: deno lint | |
- name: Run sanity check | |
run: |- | |
[[ "$(deno run mod.ts < tests/sample.ts.md | deno run -)" == "10" ]] && echo ok | |
- name: Run tests | |
run: |- | |
deno test -A --quiet --coverage | |
deno coverage --lcov --output=cov.lcov | |
deno coverage | |
- name: Run publish --dry-run | |
run: deno publish --dry-run --allow-dirty | |
- name: Run codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./cov.lcov | |
use_oidc: true | |