Skip to content

Commit

Permalink
cleaning up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LukBelter committed Apr 11, 2024
1 parent 961d09e commit e45544c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
changed_files=$(gh pr diff --name-only ${{ github.event.pull_request.number }})
changed_files=$(gh pr diff --name-only ${{ github.event.pull_request.number }}) #todo: Maybe change to git diff to avoid 300 diff limit?
test=false
for file in $changed_files; do
if [[ $file == ".github/"* || $file == "doc/"* ]]; then
echo "$test file: $file"
# echo "$test file: $file"
else
test=true
echo "$test file: $file"
Expand All @@ -56,8 +56,7 @@ jobs:
if: |
(github.event.pull_request.draft == false)
&& (needs.check.outputs.worth_testing == true)
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -93,13 +92,11 @@ jobs:
test:
name: "Test"
timeout-minutes: 120

needs: build
if: |
(github.event.pull_request.draft == false)
&& (needs.check.outputs.worth_testing == true)
needs: build

runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit e45544c

Please sign in to comment.