Skip to content

Commit 0163d37

Browse files
authored
Ghactions update (#90)
* add aws creds and test targets to gh actions * add aws credentials to github actions
1 parent b588c3a commit 0163d37

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
- name: Build Docker Images
4646
run: make build-docker-images
4747

48+
- name: Integration Tests
49+
if: github.event_name == 'push'
50+
run: make integ-test
51+
env:
52+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54+
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
55+
AWS_REGION: ${{ secrets.AWS_REGION }}
56+
4857
release:
4958
name: Release
5059
runs-on: ubuntu-20.04

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,13 @@ sync-readme-to-dockerhub:
9393
unit-test:
9494
go test -bench=. ${MAKEFILE_PATH}/... -v -coverprofile=coverage.out -covermode=atomic -outputdir=${BUILD_DIR_PATH}
9595

96+
## requires aws credentials
9697
e2e-test: build
9798
${MAKEFILE_PATH}/test/e2e/run-test
9899

100+
## requires aws credentials
101+
integ-test: e2e-test output-validation-test readme-codeblock-test
102+
99103
homebrew-sync-dry-run:
100104
${MAKEFILE_PATH}/scripts/sync-to-aws-homebrew-tap -d -b ${BIN} -r ${REPO_FULL_NAME} -p ${SUPPORTED_PLATFORMS} -v ${LATEST_RELEASE_TAG}
101105

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h4>A CLI tool and go library which recommends instance types based on resource criteria like vcpus and memory.</h4>
44

55
<p>
6-
<a href="https://golang.org/doc/go1.15">
6+
<a href="https://golang.org/doc/go1.16">
77
<img src="https://img.shields.io/github/go-mod/go-version/aws/amazon-ec2-instance-selector?color=blueviolet" alt="go-version">
88
</a>
99
<a href="https://opensource.org/licenses/Apache-2.0">

0 commit comments

Comments
 (0)