Skip to content

Commit

Permalink
ci: 🤖 test
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Jul 4, 2024
1 parent f29996c commit e0687a3
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 31 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test

on:
push:

jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install --frozen-lockfile --ignore-scripts
- run: bunx nx format:check
- run: bunx nx run-many -t build lint test
56 changes: 28 additions & 28 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const js = require('@eslint/js');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended
recommendedConfig: js.configs.recommended,
});

module.exports = [
Expand All @@ -13,8 +13,8 @@ module.exports = [
...config,
files: ['**/*.json'],
rules: {
...config.rules
}
...config.rules,
},
})),
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
Expand All @@ -23,10 +23,10 @@ module.exports = [
'warn',
{
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_'
}
]
}
destructuredArrayIgnorePattern: '^_',
},
],
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
Expand All @@ -45,8 +45,8 @@ module.exports = [
'type:domain',
'type:infra',
'type:model',
'type:util'
]
'type:util',
],
},
{
sourceTag: 'type:feature',
Expand All @@ -56,55 +56,55 @@ module.exports = [
'type:domain',
'type:infra',
'type:model',
'type:util'
]
'type:util',
],
},
{
sourceTag: 'type:ui',
onlyDependOnLibsWithTags: ['type:ui', 'type:model', 'type:util']
onlyDependOnLibsWithTags: ['type:ui', 'type:model', 'type:util'],
},
{
sourceTag: 'type:domain',
onlyDependOnLibsWithTags: [
'type:domain',
'type:infra',
'type:model',
'type:util'
]
'type:util',
],
},
{
sourceTag: 'type:infra',
onlyDependOnLibsWithTags: [
'type:infra',
'type:model',
'type:util'
]
'type:util',
],
},
{
sourceTag: 'type:model',
onlyDependOnLibsWithTags: ['type:model', 'type:util']
onlyDependOnLibsWithTags: ['type:model', 'type:util'],
},
{
sourceTag: 'type:util',
onlyDependOnLibsWithTags: ['type:util']
}
]
}
]
}
onlyDependOnLibsWithTags: ['type:util'],
},
],
},
],
},
},
...compat.config({ extends: ['plugin:@nx/typescript'] }).map((config) => ({
...config,
files: ['**/*.ts', '**/*.tsx'],
rules: {
...config.rules
}
...config.rules,
},
})),
...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({
...config,
files: ['**/*.js', '**/*.jsx'],
rules: {
...config.rules
}
}))
...config.rules,
},
})),
];
4 changes: 1 addition & 3 deletions tools/plugins/implicit-libs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
"{projectRoot}/eslint.config.cjs",
"{workspaceRoot}/tools/eslint-rules/**/*",
{
"externalDependencies": [
"eslint"
]
"externalDependencies": ["eslint"]
}
],
"outputs": ["{options.outputFile}"]
Expand Down

0 comments on commit e0687a3

Please sign in to comment.