Skip to content

Commit

Permalink
create build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
corsicanec82 committed Sep 5, 2024
1 parent 0d30a31 commit 9f26ed3
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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 }}" | tr ',' ' '
# - run: |
# LINTERS=($(echo "${{ steps.changes.outputs.changes }}" | tr '\n' ' '))
# for element in $LINTERS;
# do
# echo "Содержимое каталога $element:";
# ls "$element";
# done
1 change: 1 addition & 0 deletions eslint/app/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
1 change: 1 addition & 0 deletions multi-language/app/java/test
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3

0 comments on commit 9f26ed3

Please sign in to comment.