Skip to content

Commit

Permalink
Adjust CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pklaschka committed Dec 14, 2024
1 parent 8ed7943 commit 2c67bb4
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/backend-go-ci.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
name: Backend Go CI

# Events that trigger this workflow
on: [ push, pull_request ]
on: [push, pull_request]

defaults:
run:
working-directory: ./backend-go

jobs:
style:
name: Style
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Check style 🧽
run: docker compose --file docker-compose.ci.yml --profile style up --abort-on-container-exit
- name: Stop containers 🛑
if: always()
run: docker compose --file docker-compose.ci.yml --profile style down

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/[email protected]
- name: Run tests 🛃
run: docker compose --file docker-compose.ci.yml --profile test up --abort-on-container-exit
- name: Stop containers 🛑
if: always()
run: docker compose --file docker-compose.ci.yml --profile test down
- name: Setup Virtual Environment 🛠️
run: |-
../backend-features/tools/setup-venv.sh
- name: Run Tests 🧪
run: |-
. ../backend-features/.venv/bin/activate
../backend-features/run-tests.py -v .

0 comments on commit 2c67bb4

Please sign in to comment.