-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: synced file(s) with honestbank/.github (#77)
- Loading branch information
1 parent
37cc410
commit 8fd0c1a
Showing
6 changed files
with
54 additions
and
64 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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 |
---|---|---|
@@ -1,19 +1,28 @@ | ||
name: "semantic-pull-request" | ||
permissions: read-all | ||
# yamllint disable rule:line-length | ||
# Use template from https://github.com/honestbank/workflows/tree/main/examples/repository-workflows | ||
|
||
# Use this workflow for public repos, since public repos cannot access our internal | ||
# workflows repo. | ||
--- | ||
name: public-semantic-pr | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
name: semantic-pull-request | ||
public-semantic-pr: | ||
name: public-semantic-pr | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
- uses: amannn/action-semantic-pull-request@v4 | ||
name: Semantic Pull Request | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,55 +1,30 @@ | ||
name: terratest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: "Terratest GitHub Action" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
branches: [test, dev, qa, prod, main] | ||
push: | ||
branches: | ||
- main | ||
branches: [test, dev, qa, prod, main] | ||
env: | ||
COMPUTE_GOOGLE_CREDENTIALS: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_COMPUTE }} | ||
COMPUTE_GOOGLE_PROJECT: ${{ secrets.TERRATEST_GOOGLE_PROJECT_COMPUTE }} | ||
TF_VAR_google_credentials: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_COMPUTE }} | ||
TF_VAR_shared_vpc_host_google_credentials: ${{ secrets.TERRATEST_GOOGLE_CREDENTIALS_NETWORK }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.TERRATEST_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_KEY: ${{ secrets.TERRATEST_AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ${{ secrets.TERRATEST_AWS_REGION }} | ||
AWS_REGION: ${{ secrets.TERRATEST_AWS_REGION }} | ||
jobs: | ||
terratest: | ||
name: terratest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code into the Go module directory | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Set up Go (latest version greater than 1.19) | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '~>1.21' | ||
- name: gcloud-auth | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ env.COMPUTE_GOOGLE_CREDENTIALS }} | ||
- name: gcloud-setup | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
version: "latest" # This is the default value, just being explicit | ||
project_id: ${{ env.COMPUTE_GOOGLE_PROJECT }} | ||
install_components: 'gke-gcloud-auth-plugin' | ||
export_default_credentials: false | ||
- name: Run terratest | ||
go-version: 1.20 | ||
id: go | ||
- name: Run 'go test -v -timeout 60m' | ||
run: | | ||
cd test | ||
go test -v -timeout 120m | ||
- name: Release | ||
if: github.event_name == 'push' | ||
uses: cycjimmy/semantic-release-action@v4 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
extra_plugins: | | ||
@semantic-release/git@10.0.1 | ||
@semantic-release/exec@6.0.3 | ||
@semantic-release/changelog@6.0.1 | ||
go mod download | ||
go test -v -timeout 30m |