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 59cd1ca
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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) }}"
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 59cd1ca

Please sign in to comment.