Skip to content
Open
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
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion cmd/nbe/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down