Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Navid Yaghoobi <[email protected]>
  • Loading branch information
navidys committed Jun 30, 2024
1 parent 4fa6fb8 commit 6cdc966
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 21 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: validation
on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]

DCO-check:
runs-on: ubuntu-latest
steps:
- name: get pr commits
id: 'get-pr-commits'
uses: tim-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: DCO check
uses: tim-actions/dco@master
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}

- name: check subject line length
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.{0,72}(\n.*)*$'
error: 'Subject too long (max 72)'

codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
ignore_words_list: crate

validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make validate

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: make test
21 changes: 0 additions & 21 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,6 @@ jobs:
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]

DCO-check:
runs-on: ubuntu-latest
steps:
- name: get pr commits
id: 'get-pr-commits'
uses: tim-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: DCO check
uses: tim-actions/dco@master
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}

- name: check subject line length
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.{0,72}(\n.*)*$'
error: 'Subject too long (max 72)'

codespell:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 6cdc966

Please sign in to comment.