Skip to content

fix: workflow go version #18

fix: workflow go version

fix: workflow go version #18

Workflow file for this run

name: Go testing
on:
push:
branches: ["develop", "bugfixes"]
pull_request:
branches: ["develop"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.1"
- name: execute small test
run: |
cd internal/cart
go test -run TestCartUtils_InspectCart
- name: Setup databases
run: |
sudo apt-get update
sudo apt install docker docker-compose -y
curl -s https://packages.stripe.dev/api/security/keypair/stripe-cli-gpg/public | gpg --dearmor | sudo tee /usr/share/keyrings/stripe.gpg
echo "deb [signed-by=/usr/share/keyrings/stripe.gpg] https://packages.stripe.dev/stripe-cli-debian-local stable main" | sudo tee -a /etc/apt/sources.list.d/stripe.list
sudo apt update
sudo apt install stripe