Skip to content

Commit

Permalink
wip: repair CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Oct 17, 2024
1 parent 797b3a2 commit c48d922
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/validate-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:

- name: Run TypeScript # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m
run: |
cd package && yarn typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
cd package && bun typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run TypeScript in example/ # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m
run: |
cd example && yarn typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee && cd ..
cd example && bun typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee && cd ..
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -67,16 +67,16 @@ jobs:
run: bun install

- name: Run ESLint
run: cd ./package && yarn lint -f @jamesacarr/github-actions && cd ..
run: cd ./package && bun lint -f @jamesacarr/github-actions

- name: Run ESLint with auto-fix
run: cd ./package && yarn lint --fix && cd ..
run: cd ./package && bun lint --fix

- name: Run ESLint in example/
run: cd example && yarn lint -f @jamesacarr/github-actions && cd ..
run: cd example && bun lint -f @jamesacarr/github-actions

- name: Run ESLint in example/ with auto-fix
run: cd example && yarn lint --fix && cd ..
run: cd example && bun lint --fix

- name: Verify no files have changed after auto-fix
run: git diff --exit-code HEAD
Binary file modified bun.lockb
Binary file not shown.
13 changes: 4 additions & 9 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"extends": "../tsconfig",
"extends": "../package/tsconfig",
"compilerOptions": {
"paths": {
"react-native-vision-camera": ["../src/index"]
},
}
},
"include": [
"src",
"index.js"
],
"exclude": [
"node_modules"
]
"include": ["src", "index.js"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"README.md"
],
"scripts": {
"typescript": "tsc --noEmit",
"postinstall": "tsc || exit 0;",
"typecheck": "tsc --noEmit",
"typescript": "tsc --noEmit false",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"lint-ci": "yarn lint -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js",
"start": "cd example && yarn start",
Expand Down

0 comments on commit c48d922

Please sign in to comment.