-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add Docker build and test job to code-test workflow (#66)
# Pull Request ## Description This change adds a new job called `docker-test` to the GitHub Actions workflow. The job builds and runs a Docker image to test the GitHub Stats Analyser. The new job includes the following steps: 1. Checkout the repository 2. Set up Docker Buildx 3. Build the Docker image using the `just docker-build` command 4. Run the Docker image with a sample repository owner This addition ensures that the Docker image can be successfully built and executed as part of the continuous integration process, providing an additional layer of testing for the project. fixes #64
- Loading branch information
1 parent
0a189be
commit 12f736c
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Code Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docker-build-and-run: | ||
name: Build Docker Image and Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Just | ||
uses: extractions/setup-just@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build Docker Image | ||
run: just docker-build | ||
|
||
- name: Run Docker Image | ||
run: just docker-run |
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
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