feat: Webhook Handler #21
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: FRP | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'packages/frp/**' | |
branches: | |
- main | |
tags: | |
- "v*.*.*" | |
pull_request: | |
paths: | |
- 'packages/frp/**' | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Check for Linting Errors | |
defaults: | |
run: | |
working-directory: packages/frp | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --with dev | |
- name: Lint | |
run: poetry run flake8 | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
defaults: | |
run: | |
working-directory: packages/frp | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --with dev | |
- name: Build | |
run: poetry build | |
type-checking: | |
runs-on: ubuntu-latest | |
name: Run Type Checking | |
defaults: | |
run: | |
working-directory: packages/frp | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --with dev | |
- name: Type Checking | |
run: poetry run mypy frp/ |