don't run test/deploy for tags #12
Workflow file for this 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
name: Continuous Integration | |
on: | |
push: | |
branches: [ '**' ] | |
paths-ignore: [ 'terraform/**' ] | |
env: | |
AWS_REGION: ${{ vars.AWS_REGION }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
APP_ID: ${{ secrets.APP_ID }} | |
ENV_ID: ${{ secrets.ENV_ID }} | |
CONFIG_ID: ${{ secrets.CONFIG_ID }} | |
jobs: | |
test: | |
name: Test and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Unit tests | |
run: docker compose -f "action-services.yml" run app bash -c "./scripts/test.sh" | |
- name: Deploy lambda | |
if: github.ref_name == 'main' | |
run: docker compose -f "action-services.yml" run app |