Skip to content

Commit

Permalink
Add windows CI and fix image tag
Browse files Browse the repository at this point in the history
Signed-off-by: Byron Ruth <[email protected]>
  • Loading branch information
bruth committed Oct 17, 2023
1 parent 81fa07b commit b133411
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,30 @@ jobs:
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
scope: ${{ secrets.VERCEL_TEAM_SCOPE }}
working-directory: ./html

windows:
name: Windows
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

0 comments on commit b133411

Please sign in to comment.