Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Merge in ADGUARD-FILTERS/aglint from fix/AG-35386-1 to master

Squashed commit of the following:

commit 4f855ed
Author: scripthunter7 <[email protected]>
Date:   Wed Sep 4 15:01:50 2024 +0200

    cleanup dist

commit 71dfe69
Author: scripthunter7 <[email protected]>
Date:   Wed Sep 4 14:54:08 2024 +0200

    fix build
  • Loading branch information
scripthunter7 committed Sep 4, 2024
1 parent 1db6c60 commit f6f1f80
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Run Jest tests
run: yarn test

- name: Build should be successful
run: yarn build

notify:
name: Send Slack notification on failure
needs: check_code
Expand Down
5 changes: 4 additions & 1 deletion bamboo-specs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Build:
yarn check-types
yarn lint
yarn test
# Build should be successful
yarn build
final-tasks:
- script:
interpreter: SHELL
Expand All @@ -61,7 +64,7 @@ Build:
ls -la
echo "Size before cleanup:" && du -h | tail -n 1
rm -rf node_modules
rm -rf node_modules dist
echo "Size after cleanup:" && du -h | tail -n 1
requirements:
- adg-docker: true
Expand Down
13 changes: 9 additions & 4 deletions src/linter/rules/no-excluded-rules.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import ss from 'superstruct';
import {
array,
object,
string,
type Struct,
} from 'superstruct';

import { type LinterRule } from '../common';
import { SEVERITY } from '../severity';
Expand Down Expand Up @@ -38,9 +43,9 @@ export const NoExcludedRules: LinterRule<RuleStorage, RuleConfig> = {
},

// Define the schema of the config
schema: ss.object({
'regexp-patterns': ss.array(ss.string()),
}) as ss.Struct,
schema: object({
'regexp-patterns': array(string()),
}) as Struct,
},
},
// Define the events that the rule will listen to
Expand Down

0 comments on commit f6f1f80

Please sign in to comment.