-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.05 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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