Skip to content

CORSの設定など #13

CORSの設定など

CORSの設定など #13

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.20"
- name: execute small test
run: |
/usr/bin/go test -timeout 30s -run ^(TestCartUtils_InspectCart|TestCartUtils_InspectPayload|TestCartUtils_ConvertCart|TestCartUtils_GetTotalAmount)$ github.com/charisworks/charisworks-backend/internal/cart
/usr/bin/go test -timeout 30s -run ^(TestInspectedRegisterPayload|TestInspectedUpdatePayload)$ github.com/charisworks/charisworks-backend/internal/manufacturer
/usr/bin/go test -timeout 30s -run ^(TestInspectProfileUpdatePayload|TestInspectAddressUpdatePayload|TestInspectAddressRegisterPayload)$ github.com/charisworks/charisworks-backend/internal/users
- 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