Skip to content

Commit

Permalink
merge jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-jackson committed Mar 20, 2024
1 parent 48eb36c commit c0bf348
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,14 @@ env:

jobs:
test:
name: Test
name: Test and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run tests
- name: Unit tests
run: docker-compose -f "action-services.yml" run app bash -c "./scripts/test.sh"

deploy:
name: Deploy
if: github.ref_name == 'main'
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Deploy lambda
if: github.ref_name == 'main'
run: docker-compose -f "action-services.yml" run app

0 comments on commit c0bf348

Please sign in to comment.