Skip to content

Commit 693c41d

Browse files
author
ivanmkc
committed
Fixed issues with workflows
1 parent b9f8037 commit 693c41d

File tree

3 files changed

+3
-20
lines changed

3 files changed

+3
-20
lines changed

.github/workflows/go-pr-test.yaml renamed to .github/workflows/go-build-and-test.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,5 @@ jobs:
2323
working-directory: ./examples/go
2424
run: go test ./...
2525

26-
- name: Run build_all.sh
27-
working-directory: ./examples/go/snippets
28-
run: ./build_all.sh
29-
30-
- name: Run run_all.sh
31-
working-directory: ./examples/go/snippets
32-
run: ./run_all.sh
26+
- name: Build Go snippets
27+
run: ./tools/go-snippets/runner.sh build

.github/workflows/go_snippets_test.yaml renamed to .github/workflows/go-snippets-pr-check.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ jobs:
6666
echo "Building only the changed Go files..."
6767
./tools/go-snippets/runner.sh build ${{ steps.changed-files.outputs.changed_files }}
6868
69-
- name: Run changed Go snippets (PR only)
70-
if: github.event_name == 'pull_request' && steps.changed-files.outputs.changed_files != ''
71-
run: |
72-
echo "Running only the changed Go files..."
73-
./tools/go-snippets/runner.sh run ${{ steps.changed-files.outputs.changed_files }}
74-
7569
# --- Scheduled Checks ---
7670
# These steps only run on the weekly schedule.
7771

@@ -80,9 +74,3 @@ jobs:
8074
run: |
8175
echo "Running weekly build for all Go snippets..."
8276
./tools/go-snippets/runner.sh build
83-
84-
- name: Run all Go snippets (Scheduled)
85-
if: github.event_name == 'schedule'
86-
run: |
87-
echo "Running weekly run for all Go snippets..."
88-
./tools/go-snippets/runner.sh run

tools/go-snippets/runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ execute_and_check() {
6363
if [[ "$1" != "build" && "$1" != "run" ]]; then
6464
echo "Usage: $0 <build|run> [file1 file2 ...]"
6565
exit 1
66-
}
66+
fi
6767

6868
ACTION=$1
6969
shift

0 commit comments

Comments
 (0)