diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 530062be..993355cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -79,3 +79,31 @@ jobs: vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} scope: ${{ secrets.VERCEL_TEAM_SCOPE }} working-directory: ./html + + windows: + name: Windows + strategy: + matrix: + os: [windows-2019, windows-2022] + + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version-file: cmd/nbe/go.mod + cache-dependency-path: cmd/nbe/go.sum + cache: true + + - name: Build nbe + run: | + go install ./cmd/nbe + + - name: Test example + run: | + nbe run examples\messaging\pub-sub\go diff --git a/cmd/nbe/docker.go b/cmd/nbe/docker.go index 1c533349..d44a4601 100644 --- a/cmd/nbe/docker.go +++ b/cmd/nbe/docker.go @@ -125,7 +125,7 @@ func (r *ImageBuilder) Run() (string, error) { uid = uuid.New().String()[:8] } - imageTag := fmt.Sprintf("%s:%s", filepath.Join("nbe", r.Example), uid) + imageTag := strings.Replace(fmt.Sprintf("%s:%s", filepath.Join("nbe", r.Example), uid), "/", "-", -1) defaultDir := filepath.Join(r.Repo, "docker", lang)