-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v0.2.0: auto-delete unused keys
Merge pull request #6 from ln80/auto_delete_disabled_keys
- Loading branch information
Showing
28 changed files
with
1,494 additions
and
137 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
name: Defaults & Misspelling | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.29 | ||
args: --enable misspell |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: SAM Nested Stack | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'stack/**' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'stack/**' | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17 | ||
|
||
- uses: aws-actions/setup-sam@v1 | ||
with: | ||
version: 1.40.1 | ||
|
||
- uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Validate SAM Template | ||
working-directory: ./stack | ||
run: | | ||
make validate | ||
- name: Install Go Dependencies | ||
working-directory: ./stack | ||
run: | | ||
go mod tidy | ||
- name: Run Unit Tests | ||
working-directory: ./stack | ||
run: | | ||
make unit/test | ||
- name: Build Stack | ||
working-directory: ./stack | ||
run: | | ||
make build | ||
- name: Generate Integ Test StackName | ||
run: echo STACK_NAME=pii-test-$(date +%s) >> $GITHUB_ENV | ||
if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Display Integ Test StackName | ||
run: echo ${{ env.STACK_NAME }} | ||
if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Deploy Integ Test Stack | ||
working-directory: ./stack | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
make integ/deploy | ||
- name: Run Integ Tests | ||
working-directory: ./stack | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
make integ/test | ||
# in case of failure, make sure to manually run the cmd after debugging | ||
- name: Clear Integ Tests | ||
working-directory: ./stack | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
make integ/clear |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
coverage.out |
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
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
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
Oops, something went wrong.