Skip to content

setup makefile to run tests on ci #57

setup makefile to run tests on ci

setup makefile to run tests on ci #57

Workflow file for this run

name: Makefile CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '0 13 * * 1'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# tool-cache: false
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.8.4
terraform_wrapper: false
- name: Install LocalStack
run: pip install localstack awscli-local[ver1] terraform-local
- name: Setup config
run: |
echo "Configuring git for codecommit sample"
git config --global user.email "localstack.sample@localstack.cloud"
git config --global user.name "Localstack Pro-Samples"
- name: Pull the latest docker image
run: docker pull localstack/localstack-pro
- name: Execute tests
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
DEBUG: 1
timeout-minutes: 40
run: cd apigateway-sns-deploy && make test-ci