Skip to content

Commit

Permalink
fix: fix the lint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Oct 23, 2024
1 parent 00e40fa commit 25ef0c5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
jobs:
lint:
uses: ./.github/workflows/lint.yml
with:
app_path: "bot"

# test:
# uses: ./.github/workflows/test.yml
Expand Down
36 changes: 9 additions & 27 deletions .github/workflows/hivemind-adapter-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,16 @@ on:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: super-linter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_JSCPD: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_MYPY: false
uses: ./.github/workflows/lint.yml
with:
app_path: "hivemind-adapter"

# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v3
# with:
# node-version: 20
# cache: "npm"
# - run: npm install --force
# - run: npm run test
# - uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# coverageCommand: npm run test:cov
# test:
# uses: ./.github/workflows/test.yml
# with:
# app_path: "./bot"
# node_version: "20"
# cache_dependency_path: "./bot/package-lock.json"

build-push:
# needs: [lint, test]
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ name: Lint Workflow

on:
workflow_call:
inputs:
app_path:
description: "Path to the application directory"
required: true
type: string

jobs:
lint:
Expand All @@ -14,11 +19,12 @@ jobs:
uses: actions/checkout@v4

- name: Run Linter
uses: super-linter/[email protected]
uses: github/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_DOCKERFILE_HADOLINT: false
VALIDATE_JSCPD: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_PYTHON_MYPY: false
FILTER_REGEX_INCLUDE: "^${{ inputs.app_path }}/"

0 comments on commit 25ef0c5

Please sign in to comment.