Skip to content

Commit

Permalink
fix: 🐞 fix configurations
Browse files Browse the repository at this point in the history
fix configurations
  • Loading branch information
tal-rofe committed Feb 4, 2023
1 parent 71e03a0 commit 40170e6
Show file tree
Hide file tree
Showing 9 changed files with 4,813 additions and 4,532 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint Commit Messages

on: [pull_request]

jobs:
Expand All @@ -8,4 +9,5 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: wagoid/commitlint-github-action@v4
102 changes: 82 additions & 20 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,96 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
test_pull_request:
name: Testing & Checking the code
runs-on: ubuntu-latest
depcheck:
name: Testing Depcheck

runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Test Depcheck
run: pnpm depcheck

inflint:
name: Testing Inflint

runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Test Inflint
run: pnpm inflint

typescript:
name: Testing TypeScript

runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Test TypeScript
run: pnpm type-check

- name: Setup Node.js
uses: actions/setup-node@v3
prettier:
name: Testing Prettier

runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 16
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Installing dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Test Prettier
run: pnpm prettier

- name: Check unused dependencies
run: yarn run depcheck
eslint:
name: Testing ESLint

- name: Check Typescript
run: yarn run type-check
runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Test ESLint
run: pnpm lint

- name: Check ESLint
run: yarn run lint
dist:
name: Testing dist

- name: Check Inflint
run: yarn run inflint
runs-on: [self-hosted, Linux, X64, integration]
steps:
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Check dist command
run: yarn run dist
- name: Test dist
run: pnpm dist
16 changes: 6 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup Node environment
uses: Exlint/[email protected]
with:
node-version: 16

- name: Installing dependencies
run: yarn install --immutable --immutable-cache --check-cache
node-version: 18.13.0
package-manager: pnpm
package-manager-version: 7.26.3

- name: Build dist folder
run: yarn run dist
run: pnpm dist

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
Expand Down
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
save-exact=true
stream=true
strict-peer-dependencies=false
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
},
"files.associations": {
"commit-msg": "shellscript"
},
"[properties]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
"prepare": "is-ci || run-s setdev onboarding",
"dist:create": "webpack -c webpack.config.ts",
"dist": "webpack -c webpack.config.ts",
"lint": "eslint src/**/*",
"lint:fix": "eslint src/**/* --fix",
"lint": "eslint -c ./.eslintrc.js ./src/**/*",
"format": "prettier --write \"**/*.{ts,js,json}\"",
"type-check": "tsc --project ./tsconfig.json",
"depcheck": "depcheck",
"inflint": "inflint"
"depcheck": "depcheck --config ./.depcheckrc.json",
"inflint": "inflint -c ./inflint.config.ts",
"prettier": "prettier --check **/*.{ts,js,cjs,json,yaml}"
},
"dependencies": {
"@expo/spawn-async": "1.6.0",
Expand Down
Loading

0 comments on commit 40170e6

Please sign in to comment.