Dan Anglin
c2a1e28773
Summary: Add simple CI pipelines to the greet project. Here we add CI pipelines for both Woodpecker and Dagger CI as we are currently interested in both technologies. Changes: - Add .woodpecker/woodpecker.yml - Updated LICENSE - Updated README.md - Fixed linting issues in greet.go - Created a new internal go module for CI/CD in internal/build - Moved the magefiles to internal/build/magefiles - Add dagger pipeline code
19 lines
390 B
YAML
19 lines
390 B
YAML
pipeline:
|
|
test:
|
|
image: golang:1.20.4
|
|
environment:
|
|
- GO_TEST_VERBOSE=1
|
|
- GO_TEST_COVER=1
|
|
commands:
|
|
- cd internal/build
|
|
- go run magefiles/main.go -v test
|
|
when:
|
|
event: pull_request
|
|
|
|
lint:
|
|
image: golangci/golangci-lint:v1.52.2-alpine
|
|
commands:
|
|
- cd internal/build
|
|
- go run magefiles/main.go -v lint
|
|
when:
|
|
event: pull_request
|