Skip to content

Updated Makefile to reflect common structure (#123) #84

Updated Makefile to reflect common structure (#123)

Updated Makefile to reflect common structure (#123) #84

Workflow file for this run

# Upon pushing to the main branch it runs all tests.
#
# Copyright (c) 2022 AlertAvert.com. All rights reserved.
# Author: Marco Massenzio ([email protected])
#
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install YQ
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq &&\
sudo chmod +x /usr/bin/yq
- name: Generate Certs
run: |
export GOPATH=/opt/go
mkdir -p $GOPATH/bin
export PATH=$GOPATH/bin:$PATH
go install github.com/cloudflare/cfssl/cmd/[email protected]
go install github.com/cloudflare/cfssl/cmd/[email protected]
make certs
- name: Build Container
run: |
make container
- name: Test Server
run: |
mkdir -p ${HOME}/.aws && cp data/credentials ${HOME}/.aws/
export AWS_REGION=us-west-2
go test ./pkg/api ./pkg/grpc ./pkg/pubsub ./pkg/storage