Skip to content

Commit

Permalink
Merge pull request #39 from Altonhe/feature/githubci
Browse files Browse the repository at this point in the history
feat: docker image build and validation checks
  • Loading branch information
aaronbrethorst authored Feb 23, 2024
2 parents a1807f7 + 52dae80 commit a0f204d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test

on:
push:
branches:
- main
pull_request:

jobs:
image:
name: Test Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

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

# Split the build into two steps to identify which step fails
- name: Build bundler image
run: docker buildx build --load -t bundler-image:latest ./bundler

- name: Build oba image
run: docker buildx build --load -t oba-image:latest ./oba

services:
name: Test Services
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Docker Compose up
run: docker-compose up -d

- name: Wait for services to be up
run: sleep 5

- name: Test the services
run: |
chmod +x ./bin/validate.sh
./bin/validate.sh
- name: Docker Compose down
if: always()
run: docker-compose down

0 comments on commit a0f204d

Please sign in to comment.