From 691e7ba2e96f736b2e0fa85cd1f8eb3a7d150948 Mon Sep 17 00:00:00 2001 From: KD Date: Sat, 1 Mar 2025 21:24:42 +0000 Subject: [PATCH] Updating go version --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ go.mod | 5 +++-- go.sum | 2 ++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9ec4765 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,36 @@ +# This file is a template, and might need editing before it works on your project. +# You can copy and paste this template into a new `.gitlab-ci.yml` file. +# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. +# +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Go.gitlab-ci.yml + +image: golang:1.24 + +stages: + - test + - build + - deploy + +format: + stage: test + script: + - go fmt $(go list ./... | grep -v /vendor/) + - go vet $(go list ./... | grep -v /vendor/) + - go test -race $(go list ./... | grep -v /vendor/) + +compile: + stage: build + script: + - mkdir -p mybinaries + - go build -o mybinaries ./... + artifacts: + paths: + - mybinaries + +deploy: + stage: deploy + script: echo "Define your deployment script!" + environment: production diff --git a/go.mod b/go.mod index 9050783..3f381af 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,10 @@ module git.kundeng.us/phoenix/twilio_sender -go 1.21.6 +go 1.24 + +require github.com/twilio/twilio-go v1.23.13 require ( github.com/golang/mock v1.6.0 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/twilio/twilio-go v1.16.1 // indirect ) diff --git a/go.sum b/go.sum index 3ffc798..31c7503 100644 --- a/go.sum +++ b/go.sum @@ -17,6 +17,8 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/twilio/twilio-go v1.16.1 h1:tzoAOtQiWWnKeR5EZpSlCyElRLtvrMjLeKfohtnraik= github.com/twilio/twilio-go v1.16.1/go.mod h1:tdnfQ5TjbewoAu4lf9bMsGvfuJ/QU9gYuv9yx3TSIXU= +github.com/twilio/twilio-go v1.23.13 h1:R5RM5rtIR2egUjQMYxN9jNwKoYVDD7MMBGpBcv/kauw= +github.com/twilio/twilio-go v1.23.13/go.mod h1:zRkMjudW7v7MqQ3cWNZmSoZJ7EBjPZ4OpNh2zm7Q6ko= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=