Skip to content

Commit

Permalink
ci: add build ci (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemain authored Mar 5, 2024
1 parent f1c3d5b commit eb2bcd5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: VersionFox CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Install dependencies
run: |
go get .
- name: Build with the Go CLI
run: |
go build .
- name: Test with the Go CLI
run: |
go test ./internal
2 changes: 1 addition & 1 deletion internal/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (b *Sdk) Use(version Version, scope UseScope) error {
}
}
b.sdkManager.Record.Add(b.Plugin.Filename, string(version))
err := b.sdkManager.Record.Save()
err = b.sdkManager.Record.Save()
if err != nil {
return err
}
Expand Down

0 comments on commit eb2bcd5

Please sign in to comment.