Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 45 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main]

jobs:
lint-and-format:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand All @@ -17,15 +17,51 @@ jobs:
cache: 'npm'

- run: npm ci
- run: npm run lint

- name: Lint
run: npm run lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'

- name: Format check
run: npm run format:check
- run: npm ci
- run: npm run format:check

- name: Type check
run: npm run compile
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'

- name: Test
run: npm test
- run: npm ci
- run: npm run compile

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'

- run: npm ci

- name: Test with coverage
run: npm run test:coverage

- name: Upload coverage to Codecov
if: env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v5
with:
files: coverage/lcov.info
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# GitHub Webhook Manager

[![codecov](https://codecov.io/gh/seiya-koji/github-webhook-manager/graph/badge.svg)](https://codecov.io/gh/seiya-koji/github-webhook-manager)
[![VS Marketplace Version](https://badgen.net/vs-marketplace/v/seiya-koji.github-webhook-manager?label=version)](https://marketplace.visualstudio.com/items?itemName=seiya-koji.github-webhook-manager)
[![VS Marketplace Installs](https://badgen.net/vs-marketplace/i/seiya-koji.github-webhook-manager?label=installs)](https://marketplace.visualstudio.com/items?itemName=seiya-koji.github-webhook-manager)
[![VS Marketplace Rating](https://badgen.net/vs-marketplace/rating/seiya-koji.github-webhook-manager?label=rating)](https://marketplace.visualstudio.com/items?itemName=seiya-koji.github-webhook-manager)
Expand Down
Loading
Loading