Skip to content

Add Unit Tests for DeleteAuthor Handler #45

Add Unit Tests for DeleteAuthor Handler

Add Unit Tests for DeleteAuthor Handler #45

Workflow file for this run

name: End-to-End Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Install dependencies
run: |
cd api
go mod download
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Set up Docker Compose
run: |
docker-compose -f ./docker-compose.yaml up -d
- name: Install Venom
run: |
curl https://github.com/ovh/venom/releases/download/v1.1.0/venom.linux-amd64 -L -o /usr/local/bin/venom && chmod +x /usr/local/bin/venom
- name: Run Venom tests
run: |
venom run api/end-to-end_tests/*.yaml
- name: Tear down
run: |
docker-compose -f ./docker-compose.yaml down --volumes