Skip to content

Commit

Permalink
config: 🔧 automate bats tests via github action ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravinou committed Oct 27, 2024
1 parent 70b7ab6 commit 4918794
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/bats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Docker Compose Build

on:
push:
branches:
- main
- develop
- test/bats
pull_request:
branches:
- main
- develop
jobs:
bats-test:
name: Docker Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker Compose
run: |
docker compose -f tests/bats/docker-compose.yml build
2 changes: 1 addition & 1 deletion tests/bats/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
test:
bats-test:
build:
context: ../..
dockerfile: tests/bats/Dockerfile
Expand Down

0 comments on commit 4918794

Please sign in to comment.