Skip to content

Commit

Permalink
Initial-CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jan 5, 2025
1 parent 65d3b72 commit 1caff75
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/mmbm-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: deploy
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [main] }

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build image
run: docker build --network=host -t app:latest .

# Push the image to a Docker container registry
16 changes: 16 additions & 0 deletions .github/workflows/mmbm-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: tests
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [main] }

jobs:
unit-tests:
runs-on: swift:6.0-noble
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Run unit tests
run: swift test --enable-code-coverage

# Process the code coverage report, etc...
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
# pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [main] }

jobs:
Expand Down

0 comments on commit 1caff75

Please sign in to comment.