Skip to content

Commit

Permalink
[ci] linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hariria committed Aug 21, 2024
1 parent 09cfc14 commit 5ce6d25
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 43 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.9.2
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
- run: pnpm install
- run: pnpm lint
22 changes: 12 additions & 10 deletions apps/nextra/utils/generated/localeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ export const localeMap = {
"/build/indexer/architecture": {
"en": true
},
"/build/indexer/fungible-asset-info": {
"en": true
},
"/build/indexer/custom-processors/e2e-tutorial": {
"en": true
},
Expand All @@ -232,6 +229,9 @@ export const localeMap = {
"/build/indexer/fungible-asset-balances": {
"en": true
},
"/build/indexer/fungible-asset-info": {
"en": true
},
"/build/indexer/get-delegators": {
"en": true
},
Expand Down Expand Up @@ -277,6 +277,12 @@ export const localeMap = {
"/build/indexer": {
"en": true
},
"/build/sdks/community-sdks/swift-sdk": {
"en": true
},
"/build/sdks/community-sdks": {
"en": true
},
"/build/sdks/cpp-sdk": {
"en": true
},
Expand Down Expand Up @@ -304,9 +310,6 @@ export const localeMap = {
"/build/sdks/rust-sdk": {
"en": true
},
"/build/sdks/swift-sdk": {
"en": true
},
"/build/sdks/ts-sdk/account": {
"en": true
},
Expand Down Expand Up @@ -836,10 +839,6 @@ export const localeMap = {
"en": true,
"zh": true
},
"/network/nodes/identity-and-configuration": {
"en": true,
"zh": true
},
"/network/nodes/localnet/local-development-network": {
"en": true,
"zh": true
Expand Down Expand Up @@ -968,5 +967,8 @@ export const localeMap = {
},
"/network/nodes/aptos-api-spec": {
"zh": true
},
"/network/nodes/identity-and-configuration": {
"zh": true
}
};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
"fmt": "turbo run fmt",
"spellcheck": "turbo run spellcheck"
},
"dependencies": {
"turbo": "2.0.14"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"prettier": "^3.2.5",
"turbo": "latest"
"prettier": "^3.2.5"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
61 changes: 31 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
Expand Down

0 comments on commit 5ce6d25

Please sign in to comment.