Skip to content

Commit cae87bc

Browse files
authored
Using dagger (#2)
* dagger do test & build * dagger with github action * fix: github action * chore: update go mod
1 parent 32c0b54 commit cae87bc

File tree

130 files changed

+16411
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+16411
-14
lines changed

.github/workflows/go.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,13 @@ on:
77
branches: [ main ]
88

99
jobs:
10-
1110
build:
1211
runs-on: ubuntu-latest
1312
steps:
1413
- uses: actions/checkout@v2
15-
16-
- name: Set up Go
17-
uses: actions/setup-go@v2
14+
- uses: dagger/dagger-for-github@v2
1815
with:
19-
go-version: 1.18
20-
21-
- name: Build
22-
run: go build -v ./...
23-
24-
- name: Test
25-
run: go test -v ./...
16+
cmds: |
17+
project update
18+
do build
19+
do test

build.cue

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package kroller
2+
3+
import (
4+
"dagger.io/dagger"
5+
"universe.dagger.io/go"
6+
//"universe.dagger.io/alpine"
7+
)
8+
9+
dagger.#Plan
10+
11+
client: filesystem: "./": read: contents: dagger.#FS
12+
client: env: CGO_ENABLED: string | *"0"
13+
14+
// build kroller
15+
actions: build: go.#Build & {
16+
source: client.filesystem."./".read.contents
17+
env: CGO_ENABLED: client.env.CGO_ENABLED
18+
}
19+
20+
// test kroller
21+
actions: test: go.#Test & {
22+
source: client.filesystem."./".read.contents
23+
package: "./..."
24+
env: CGO_ENABLED: client.env.CGO_ENABLED
25+
}
26+
27+
actions: all: {
28+
build: actions.build
29+
test: actions.test
30+
}

cue.mod/module.cue

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module: ""

cue.mod/pkg/.gitattributes

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/cue.mod/module.cue

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/compat.cue

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/exec.cue

+83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/fs.cue

+129
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/git.cue

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cue.mod/pkg/dagger.io/dagger/core/http.cue

+49
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)