Skip to content

Commit

Permalink
Merge pull request #15 from flipt-io/add-linting
Browse files Browse the repository at this point in the history
chore: initial commit for adding linting of SDKs
  • Loading branch information
yquansah authored Nov 30, 2023
2 parents c957a56 + 259ccca commit cbcee6e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: SDKs
on:
push:
branches:
- main
pull_request:

jobs:
lint-python:
name: Lint Python
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.0

- name: Lint Python source
working-directory: flipt-client-python
run: |
poetry install
poetry run black --check .
lint-typescript:
name: Lint Typescript
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Lint Typescript source
working-directory: flipt-client-node
run: |
npm ci
npm run prettier-check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Rust Engine
on:
push:
branches:
Expand All @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Stable Toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Stable Toolchain
uses: actions-rs/toolchain@v1
Expand Down

0 comments on commit cbcee6e

Please sign in to comment.