Skip to content

Update go deps (#112) #192

Update go deps (#112)

Update go deps (#112) #192

Workflow file for this run

name: Lint and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Lint and Vet
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout=3m
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start LocalStack
run: |
pip install localstack awscli-local[ver1] # install LocalStack cli and awslocal
docker pull localstack/localstack # Make sure to pull the latest version of the image
localstack start -d # Start LocalStack in the background
echo "Waiting for LocalStack startup..." # Wait 30 seconds for the LocalStack container
localstack wait -t 30 # to become ready before timing out
echo "Startup complete"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.20'
- name: Test
run: make test
env:
LOCALSTACK_ENDPOINT: http://localhost:4566
AWS_DEFAULT_REGION: eu-west-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test