Skip to content

Commit

Permalink
here
Browse files Browse the repository at this point in the history
  • Loading branch information
sesheffield committed Jul 25, 2024
1 parent 20a2905 commit a5849a5
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/ci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: Load Version
id: load-version
run: |
Expand All @@ -42,22 +45,22 @@ jobs:
args: ./...
golang-test:
runs-on: ubuntu-latest
# if: |
# contains(steps.changed-files.outputs.changed_files, '.go') ||
# contains(steps.changed-files.outputs.changed_files, 'go.sum') ||
# (
# contains(steps.changed-files.outputs.changed_files, '.yml') ||
# contains(steps.changed-files.outputs.changed_files, '.yaml')
# )
# &&
# (
# contains(steps.changed-files.outputs.changed_files, 'app') ||
# contains(steps.changed-files.outputs.changed_files, 'client') ||
# contains(steps.changed-files.outputs.changed_files, 'cmd') ||
# contains(steps.changed-files.outputs.changed_files, 'migrate') ||
# contains(steps.changed-files.outputs.changed_files, 'tests') ||
# contains(steps.changed-files.outputs.changed_files, 'x')
# )
if: |
contains(steps.changed-files.outputs.changed_files, '.go') ||
contains(steps.changed-files.outputs.changed_files, 'go.sum') ||
(
contains(steps.changed-files.outputs.changed_files, '.yml') ||
contains(steps.changed-files.outputs.changed_files, '.yaml')
)
&&
(
contains(steps.changed-files.outputs.changed_files, 'app') ||
contains(steps.changed-files.outputs.changed_files, 'client') ||
contains(steps.changed-files.outputs.changed_files, 'cmd') ||
contains(steps.changed-files.outputs.changed_files, 'migrate') ||
contains(steps.changed-files.outputs.changed_files, 'tests') ||
contains(steps.changed-files.outputs.changed_files, 'x')
)
env:
COVERAGE_DIR: out/coverage/unit/go
COVERAGE_PATH: out/coverage/unit/go/cover.out
Expand All @@ -66,6 +69,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit a5849a5

Please sign in to comment.