Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Verify upstream sync source path
shell: bash
run: |
workflow=".github/workflows/sync-upstream.yml"
current="labs/12-product-engineering-loop"
retired="examples/12-product-engineering-loop"
count="$(grep -cF "$current" "$workflow")"
if [[ "$count" != "2" ]]; then
echo "Expected exactly two sync references to $current; found $count." >&2
exit 1
fi
if grep -Fq "$retired" "$workflow"; then
echo "Sync workflow still references retired path $retired." >&2
exit 1
fi
- name: Detect projected runtime
id: runtime
shell: bash
Expand Down
17 changes: 0 additions & 17 deletions boatstack/release_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,9 @@ import (
"os"
"path/filepath"
"reflect"
"strings"
"testing"
)

func TestSyncWorkflowUsesCurrentUpstreamLabPath(t *testing.T) {
workflow, err := os.ReadFile(filepath.Join("..", ".github", "workflows", "sync-upstream.yml"))
if err != nil {
t.Fatal(err)
}
content := string(workflow)
current := "labs/12-product-engineering-loop"
if count := strings.Count(content, current); count != 2 {
t.Fatalf("sync workflow contains %q %d times, want 2", current, count)
}
retired := "examples/12-product-engineering-loop"
if strings.Contains(content, retired) {
t.Fatalf("sync workflow still references retired upstream path %q", retired)
}
}

func TestClassifyReleasePaths(t *testing.T) {
documentation := []string{
"README.md", "docs/getting-started.md", "assets/boatstack-mark.svg",
Expand Down
Loading