-
Notifications
You must be signed in to change notification settings - Fork 2
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
95667ff
commit 5b4e1ef
Showing
2 changed files
with
76 additions
and
52 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 |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: Check | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
lint: | ||
name: ESLint and TypeScript | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# name: Check | ||
# on: | ||
# workflow_dispatch: | ||
# pull_request: | ||
# types: | ||
# - opened | ||
# - synchronize | ||
# push: | ||
# branches: | ||
# - main | ||
# jobs: | ||
# lint: | ||
# name: ESLint and TypeScript | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
# - name: Set up Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: lts/* | ||
|
||
- name: Set up latest Yarn | ||
uses: threeal/setup-yarn-action@v2.0.0 | ||
with: | ||
version: latest | ||
cache: true | ||
# - name: Set up latest Yarn | ||
# uses: threeal/setup-yarn-action@v2.0.0 | ||
# with: | ||
# version: latest | ||
# cache: true | ||
|
||
- name: Check ESLint | ||
run: yarn lint | ||
# - name: Check ESLint | ||
# run: yarn lint | ||
|
||
- name: Check TypeScript | ||
run: yarn typecheck | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# - name: Check TypeScript | ||
# run: yarn typecheck | ||
# test: | ||
# name: Tests | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
# - name: Set up Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: lts/* | ||
|
||
- name: Set up latest Yarn | ||
uses: threeal/setup-yarn-action@v2.0.0 | ||
with: | ||
version: latest | ||
cache: true | ||
# - name: Set up latest Yarn | ||
# uses: threeal/setup-yarn-action@v2.0.0 | ||
# with: | ||
# version: latest | ||
# cache: true | ||
|
||
- name: Check Tests | ||
run: yarn test | ||
# - name: Check Tests | ||
# run: yarn test |
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