Skip to content

Commit

Permalink
ci: add github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fredleger committed Nov 22, 2023
1 parent 59ef733 commit 8bcbe96
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Workflow (docker)

on:
push:
branches:
- ci/docker

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Run make ci
run: |
make ci
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all: build ci publish

build: docker-build
ci: lint format unit-tests coverage functional-tests ci-clean
ci: docker-build lint format unit-tests coverage functional-tests ci-clean
publish: docker-publish

DOCKER_RUN = docker run --rm -it --entrypoint bash webofmars/cicdparadox:standard-develop
DOCKER_RUN = docker run --rm -i --entrypoint bash webofmars/cicdparadox:standard-develop

lint: docker-build-dev
${DOCKER_RUN} scripts/lint.sh
Expand All @@ -21,7 +21,7 @@ unit-tests: docker-build-dev
coverage: docker-build-dev
${DOCKER_RUN} scripts/coverage.sh

functional-tests:
functional-tests: docker-build-prod
bash scripts/functional-tests.sh

ci-clean:
Expand Down

0 comments on commit 8bcbe96

Please sign in to comment.