diff options
author | Franck Cuny <franck@fcuny.net> | 2021-04-22 15:03:44 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:57:41 -0700 |
commit | 44bd7e4465f6c7b0f0ee50a9399dfe5863a10451 (patch) | |
tree | e298b405e0f453192011c9bb43b0bbe7bbe13eed /users | |
parent | inject a script for init (diff) | |
download | world-44bd7e4465f6c7b0f0ee50a9399dfe5863a10451.tar.gz |
github: add workflows
Add a workflows to perform some validation when pushing new commits.
Diffstat (limited to 'users')
-rw-r--r-- | users/fcuny/exp/containerd-to-vm/.github/workflows/go.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/users/fcuny/exp/containerd-to-vm/.github/workflows/go.yml b/users/fcuny/exp/containerd-to-vm/.github/workflows/go.yml new file mode 100644 index 0000000..e13f8da --- /dev/null +++ b/users/fcuny/exp/containerd-to-vm/.github/workflows/go.yml @@ -0,0 +1,35 @@ +name: go + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.16 + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Go fmt + run: go fmt ./... + + - name: Go vet + run: go vet ./... + + - name: Test + run: go test -race -v ./... + + - name: Build + run: go build -v ./cmd/... |