Merge pull request #25 from MohamedElashri/mix-_linter_with_test_ci

Integrate Awesome Lint Check into PR Workflow for README Generation
This commit is contained in:
Mohamed Elashri 2024-11-12 14:45:01 +00:00 committed by GitHub
commit 26e18544b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 18 deletions

View File

@ -1,17 +0,0 @@
name: Awesome Lint CI
on:
push:
branches: ['main']
pull_request:
branches: ['**']
schedule:
- cron: "0 7 * * *"
jobs:
Awesome_Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Awesome Lint
run: npx awesome-lint

View File

@ -1,19 +1,25 @@
name: Test README Generation
on:
pull_request:
branches: ['**']
paths:
- '_README.md'
workflow_dispatch:
jobs:
test-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate README.md (Test Only)
run: |
python3 generate_readme.py _README.md > README.md
- name: Show README.md output
run: |
cat README.md
- name: Run Awesome Lint on Generated README
run: npx awesome-lint README.md