From 59cd1ca26d65444290040efce95a4ff330a2abd5 Mon Sep 17 00:00:00 2001 From: Stanislav Dzisiak Date: Wed, 4 Sep 2024 17:25:58 +0300 Subject: [PATCH] create build workflow --- .github/workflows/build.yml | 48 ++++++++++++++++++++++++++++++++++++ eslint/app/test | 1 + multi-language/app/java/test | 1 + 3 files changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 eslint/app/test create mode 100644 multi-language/app/java/test diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..91e13de --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,48 @@ +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: | + echo "Changed directories: ${{ toJson(steps.changes.outputs) }}" 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