Skip to content

Commit

Permalink
chore: test new lint action (#9)
Browse files Browse the repository at this point in the history
* chore: test new lint action

* chore: Adjust workflow

* chore: polish workflows
  • Loading branch information
clockworkgr authored Jan 30, 2024
1 parent c9ec28d commit 39bf32b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Linting

on:
pull_request_target:
types:
- opened
- edited
- synchronize


jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8
Expand All @@ -26,5 +24,5 @@ jobs:
- name: Run eslint on changed files
uses: reviewdog/action-eslint@v1
with:
reporter: github-check
reporter: github-pr-check
eslint_flags: " -c .eslintrc.js './src/**/*.ts' --max-warnings=0 --ignore-path .gitignore"
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
coverage:
name: Coverage
runs-on: ubuntu-20.04
permissions:
# Required to checkout the code
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
semantic_pr:
name: Semantic PR
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v1.2.0
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-vitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
test:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export function toHexString(byteArray: ArrayLike<number>) {
.call(byteArray, function (byte) {
return ("0" + (byte & 0xff).toString(16)).slice(-2);
})
.join("");
.join("");
}

0 comments on commit 39bf32b

Please sign in to comment.