Skip to content

ci: fix ai-review on CI #93

ci: fix ai-review on CI

ci: fix ai-review on CI #93

Workflow file for this run

name: CI for Deno
on:
pull_request:
paths:
- .github/workflows/ci-deno.yaml
- tools/**/*.ts
push:
# main ブランチで codecov へカバレッジを送るために push でもトリガーする
paths:
- .github/workflows/ci-deno.yaml
- tools/**/*.ts
branches:
- main
permissions:
contents: read
jobs:
check:
name: Check Deno scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1 # v1.1.3
with:
deno-version: v1.x
- name: Check format
run: |
deno fmt --ext=ts --check ./tools
- name: Check lint
run: |
deno lint ./tools
test:
name: Test Deno scripts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1 # v1.1.3
with:
deno-version: v1.x
- name: Test
run: |
deno test --allow-env=LOG_LEVEL --allow-read=tools --coverage=cov_profile tools/
deno coverage cov_profile --lcov --output=cov_profile.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
with:
flags: deno-unittests
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}