Skip to content

Commit

Permalink
fix: workflow add test
Browse files Browse the repository at this point in the history
  • Loading branch information
WhatACotton committed Apr 6, 2024
1 parent 407dd03 commit b81f53f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["develop"]

jobs:
build:
small_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -19,8 +19,17 @@ jobs:
- name: execute small test
run: |
cd internal/cart
go test -run TestCartUtils_InspectCart
go test -run TestCartUtils
midium_tests:
runs-on: ubuntu-latest
needs: small_tests
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.1"
- name: Setup databases
run: |
sudo apt-get update
Expand All @@ -29,3 +38,10 @@ jobs:
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
bash rest_run.sh &
sleep 10
- name: execute midium test
run: |
cd internal/cart
go test -run TestRepository
go test -run TestCartRequests

0 comments on commit b81f53f

Please sign in to comment.