Skip to content

Commit

Permalink
Test Docker build workflow in forked repo
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth7113 committed Dec 17, 2024
1 parent f2222f1 commit c9a9ad1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
name: Docker Build
name: Docker Build and Test

on: push

jobs:
DockerBuild:
name: Build docker
DockerBuildAndTest:
name: Build and Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout Code
uses: actions/checkout@v2

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

- name: Build
run: docker build .
- name: Build Docker Image
run: docker build -t neso-solar-consumer .

- name: Run Tests in Docker
run: |
docker run --rm neso-solar-consumer pytest

0 comments on commit c9a9ad1

Please sign in to comment.