Skip to content

Commit

Permalink
chore: bump lib to 0.10.0-beta.2 (#374)
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy authored Aug 22, 2024
1 parent e13a75e commit 28eb9e4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ on:
- "releases/*"
jobs:
build-and-test:
runs-on: ubuntu-latest
# Ref: https://github.com/actions/runner-images/tree/main/images/macos
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
Expand All @@ -23,7 +27,6 @@ jobs:
- name: CGO_ENABLED=1 go test
run: CGO_ENABLED=1 go test ./...

# Parallel tests
- run: go test -v -coverprofile=profile.cov ./...
- uses: shogo82148/actions-goveralls@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
google.golang.org/grpc v1.65.0
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
kcl-lang.io/lib v0.10.0-beta.1
kcl-lang.io/lib v0.10.0-beta.2
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntN
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
kcl-lang.io/lib v0.10.0-beta.1 h1:VVMaYdzYXG2nnedzPeDYxwob0D1J2sbJH7zmKE4iXT4=
kcl-lang.io/lib v0.10.0-beta.1/go.mod h1:tu+tzwGgHLzYZSIxUG/ntipStrxZd6OvutWYPTxS7cs=
kcl-lang.io/lib v0.10.0-beta.2 h1:2C6flNt762+uH2GDzxxEVlG09NmWMOCedjoti0Kp4RQ=
kcl-lang.io/lib v0.10.0-beta.2/go.mod h1:tu+tzwGgHLzYZSIxUG/ntipStrxZd6OvutWYPTxS7cs=
8 changes: 6 additions & 2 deletions kcl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ a2 = App {
defer os.Remove(testdata_main_k)

kfile, err = os.Create(testdata_main_k)
if err != nil {
t.Fatal(err)
}
kfile.Close()

result, err = kcl.Run(testdata_main_k,
Expand Down Expand Up @@ -186,8 +189,9 @@ a1 = App {
name = "a1-app"
image = "new-a1-image"
}
a2 = App {image = "new-a2-image:v123"}`)
a2 = App {
image = "new-a2-image:v123"
}`)

got := strings.TrimSpace(string(data))
got = strings.ReplaceAll(got, "\r\n", "\n")
Expand Down
1 change: 0 additions & 1 deletion pkg/tools/override/override_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ schema Config:
if True:
configOther = Config {image = "image/other:v1"}
config: Config {
image = "image/image:v1"
replicas: 1
Expand Down
1 change: 0 additions & 1 deletion pkg/tools/override/testdata/test.k
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ schema Config:
if True:
configOther = Config {image = "image/other:v1"}


config: Config {
image = "image/image:v1"
replicas: 1
Expand Down

0 comments on commit 28eb9e4

Please sign in to comment.