diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9494adb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: build + +on: + push: + branches: + # - main + - create-workflow + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + # - name: Set linter directories + # run: | + # IFS=' ' LINTER_DIRS=($(find . -maxdepth 1 -type d -not -name '.*' -exec basename {} \; | tr '\n' ' ')) + + # - run: for i in $LINTER_DIRS; do echo "--$i--"; done + + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + multi-language: + - 'multi-language/**' + checkstyle: + - 'checkstyle/**' + sqlint: + - 'sqlint/**' + phpcs: + - 'phpcs/**' + layout-designer-lint: + - 'layout-designer-lint/**' + python-flake8: + - 'python-flake8/**' + golangci-lint: + - 'golangci-lint/**' + rubocop: + - 'rubocop/**' + eslint: + - 'eslint/**' + nulllint: + - 'nulllint/**' + + - run: | + for element in ${{ join(steps.changes.outputs.changes, ' ') }} + do + echo "Содержимое каталога $element:" + ls "$element" + done diff --git a/eslint/app/test b/eslint/app/test new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/eslint/app/test @@ -0,0 +1 @@ +3 diff --git a/multi-language/app/java/test b/multi-language/app/java/test new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/multi-language/app/java/test @@ -0,0 +1 @@ +3