Skip to content

create build workflow #23

create build workflow

create build workflow #23

Workflow file for this run

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 "${{ steps.changes.outputs.changes }}" | jq -r '.[]'
# - run: |
# LINTERS=($(echo "${{ steps.changes.outputs.changes }}" | tr '\n' ' '))
# for element in $LINTERS;
# do
# echo "Содержимое каталога $element:";
# ls "$element";
# done