From 68f55f013203eae3f96a9cb5dc6e162344fa1ab1 Mon Sep 17 00:00:00 2001 From: Thang Bui Quang <89576896+thangbuiq@users.noreply.github.com> Date: Fri, 16 Feb 2024 06:30:24 +0000 Subject: [PATCH] feat: add lint test --- .github/workflows/auto_assign.yml | 3 ++- .github/workflows/auto_labeler.yml | 3 ++- .github/workflows/codespaces-image.yml | 1 + .github/workflows/lint.yml | 28 ++++++++++++++++++++++++++ .github/workflows/pages.yml | 2 +- 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/auto_assign.yml b/.github/workflows/auto_assign.yml index acf286b..194cf27 100644 --- a/.github/workflows/auto_assign.yml +++ b/.github/workflows/auto_assign.yml @@ -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 diff --git a/.github/workflows/auto_labeler.yml b/.github/workflows/auto_labeler.yml index c287cf2..a9ce982 100644 --- a/.github/workflows/auto_labeler.yml +++ b/.github/workflows/auto_labeler.yml @@ -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 diff --git a/.github/workflows/codespaces-image.yml b/.github/workflows/codespaces-image.yml index be82021..fbba37e 100644 --- a/.github/workflows/codespaces-image.yml +++ b/.github/workflows/codespaces-image.yml @@ -18,6 +18,7 @@ env: jobs: build-test-image: + name: Test runs-on: ubuntu-22.04 permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..3372104 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 568d8b3..3e0ce2c 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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