Skip to content

Commit

Permalink
feat: add lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
thangbuiq committed Feb 16, 2024
1 parent 3e322d7 commit 68f55f0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 'Pull Request Assigner'
name: 'PR Assigner'
on:
pull_request:
types: [opened, ready_for_review]

jobs:
add-reviews:
name: Auto
runs-on: ubuntu-22.04
steps:
- uses: kentaro-m/auto-assign-action@v2.0.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/auto_labeler.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: 'Pull Request Labeler'
name: 'PR Labeler'
on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]

jobs:
labeler:
name: Auto
permissions:
contents: read
pull-requests: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codespaces-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:

jobs:
build-test-image:
name: Test
runs-on: ubuntu-22.04
permissions:
contents: read
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on:
pull_request:
push:
branches: ['main']

jobs:
markdown:
name: Markdown
runs-on: ubuntu-22.04

permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check markdown files
uses: avto-dev/markdown-lint@v1
with:
args: '**/*.md'
ignore: ./README.md
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
build-and-serve:
name: Test Build and Serving
name: Test
runs-on: ubuntu-22.04
steps:
- name: Checkout Code
Expand Down

0 comments on commit 68f55f0

Please sign in to comment.