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:
commit
26e18544b2
|
|
@ -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
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue