Updated Makefile to reflect common structure #83
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
# 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 |