-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcec884
commit c60b130
Showing
4 changed files
with
43 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Expo Doctor | ||
|
||
jobs: | ||
run-workflows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Expo Doctor | ||
run: npx expo-doctor@latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Linting | ||
|
||
jobs: | ||
run-workflows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Run the TypeScript Lint workflow | ||
- name: Run TypeScript Lint | ||
uses: reviewdog/action-eslint@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
eslint_flags: ". --ext .js,.jsx,.ts,.tsx"\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
name: Run All Workflows | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-workflows: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
workflow: [expo-doctor.yml, lint-ts.yml, type-check.yml] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
# Run the Expo Doctor workflow | ||
- name: Run Expo Doctor | ||
run: npx expo-doctor@latest | ||
|
||
# Run the TypeScript Lint workflow | ||
- name: Run TypeScript Lint | ||
uses: reviewdog/action-eslint@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
reporter: github-pr-review | ||
eslint_flags: ". --ext .js,.jsx,.ts,.tsx" | ||
|
||
# Run the Type Check workflow | ||
- name: Run Type Check | ||
run: npm run tsc --noEmit | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run ${{ matrix.workflow }} | ||
uses: ${{ matrix.workflow }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: Type Check | ||
|
||
jobs: | ||
run-workflows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Run the Type Check workflow | ||
- name: Run Type Check | ||
run: npm run tsc --noEmit |