-
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.
chore: merge pull request #70 from
threeal/js-action
Convert to JavaScript Action
- Loading branch information
Showing
16 changed files
with
32,182 additions
and
107 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,28 @@ | ||
{ | ||
"root": true, | ||
"extends": ["eslint:recommended", "prettier"], | ||
"parserOptions": { | ||
"ecmaVersion": 2022, | ||
"sourceType": "module" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.mts", "**/*.ts"], | ||
"extends": ["plugin:@typescript-eslint/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["tsconfig.eslint.json"] | ||
}, | ||
"plugins": ["@typescript-eslint", "eslint-plugin-tsdoc"], | ||
"rules": { | ||
"tsdoc/syntax": "error" | ||
} | ||
}, | ||
{ | ||
"files": ["**/*.test.*"], | ||
"env": { | ||
"jest": true | ||
} | ||
} | ||
] | ||
} |
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 @@ | ||
main/index.mjs -diff linguist-generated=true |
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
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,39 @@ | ||
name: Build | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
build-package: | ||
name: Build Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4.0.0 | ||
with: | ||
node-version: latest | ||
|
||
- name: Update Yarn | ||
run: corepack enable && yarn set version stable | ||
|
||
- name: Cache deps | ||
uses: actions/cache@v3.3.2 | ||
with: | ||
path: .yarn | ||
key: yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }} | ||
|
||
- name: Install deps | ||
run: yarn install | ||
|
||
- name: Check lib | ||
run: yarn check | ||
|
||
- name: Bundle dist | ||
run: yarn bundle | ||
|
||
- name: Check diff | ||
run: git diff --exit-code HEAD |
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
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,4 +1,8 @@ | ||
.* | ||
!.eslint* | ||
!.git* | ||
|
||
build | ||
build/ | ||
coverage/ | ||
dist/ | ||
node_modules/ |
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
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
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,19 @@ | ||
{ | ||
"collectCoverage": true, | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 100, | ||
"functions": 100, | ||
"lines": 100, | ||
"statements": 100 | ||
} | ||
}, | ||
"extensionsToTreatAsEsm": [".ts", ".mts"], | ||
"moduleNameMapper": { | ||
"^(\\.{1,2}/.*)\\.mjs$": "$1.mts" | ||
}, | ||
"testMatch": ["**/*.test.ts"], | ||
"transform": { | ||
"^.+\\.m?ts$": ["ts-jest", { "useESM": true }] | ||
} | ||
} |
Oops, something went wrong.