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