-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.42 KB
/
tests-integration.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: IntegrationTest
on:
push:
branches: ["main", "features/*", "issues/*"]
pull_request:
branches: ["main", "features/*", "issues/*"]
jobs:
test:
runs-on: self-hosted
container: golang:1.18.2-buster
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Path info
run: pwd
- name: Files info
run: ls -la
- name: Build for the current platform
run: go build -o awsrouters *.go
- name: Change permissions
run: chmod +x awsrouters
- name: Running the root command
run: ./awsrouters
env:
AWS_REGION: us-east-1
- name: Running a db sync command
env:
AWS_REGION: us-east-1
run: |
touch .go-aws-routing.yaml
echo "db_Name: testing-db123" > .go-aws-routing.yaml
./awsrouters sync
- name: Running a path sync command
env:
AWS_REGION: us-east-1
run: ./awsrouters path 10.0.1.1 10.0.2.1
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.18
# - name: Set up task
# run: go install github.com/go-task/task/v3/cmd/task@latest
# - name: Test
# uses: golang:1.18.2-buster
# run: go test -v ./...
# - name: Build
# run: task buildall