Add Unit Tests for DeleteAuthor Handler #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |