Skip to content

Exec golangci-lint and go test #3

Exec golangci-lint and go test

Exec golangci-lint and go test #3

Workflow file for this run

name: Go Lint & Test Sequence
run-name: Exec golangci-lint and go test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint-and-test:
name: Lint and Test
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.5'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.57.2
- name: Start Docker Compose
run: docker-compose -f platform/local/docker-compose.yml up -d
- name: Install AWS CLI
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
- name: Run dynamodb local setup
run: ./platform/local/dynamodb-local-setup.sh
- name: Run Tests
run: go test -v ./...