-
Notifications
You must be signed in to change notification settings - Fork 334
Convert acceptance to use github actions #2046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
550e204
Tests: increase timeouts and retries
curtbushko 9533c5b
use a larger machine as things are timing out
curtbushko 10f5ee6
Dispatch: dispatch to consul-k8s-workflows
curtbushko 0c6ecaf
Use github.head_ref if it is available for the branch name
curtbushko 8c5ba3c
Add note about weekly schedules per release needing a file
curtbushko 7986dbf
Update weekly to use correct consul-enterprise image
curtbushko 494c931
Remove my branch
curtbushko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,27 @@ | ||
| # Dispatch to the consul-k8s-workflows with a nightly cron | ||
| name: nightly-acceptance | ||
| on: | ||
| schedule: | ||
| # * is a special character in YAML so you have to quote this string | ||
| # Run nightly at 12AM UTC/8PM EST/5PM PST | ||
| - cron: '0 0 * * *' | ||
|
|
||
| # these should be the only settings that you will ever need to change | ||
| env: | ||
| CONSUL_IMAGE: hashicorppreview/consul-enterprise:1.16-dev # Consul's enterprise version to use in tests | ||
| BRANCH: ${{ github.ref_name }} | ||
| CONTEXT: "nightly" | ||
|
|
||
| jobs: | ||
| cloud: | ||
| name: cloud | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: benc-uk/workflow-dispatch@v1.2.2 | ||
| name: cloud | ||
| with: | ||
| workflow: cloud.yml | ||
| repo: hashicorp/consul-k8s-workflows | ||
| ref: main | ||
| token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} | ||
| inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}", "consul-image":"${{ env.CONSUL_IMAGE }}" }' |
This file contains hidden or 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,31 @@ | ||
| # Dispatch to the consul-k8s-workflows when a PR is created and on merges to main/release* | ||
| name: pr | ||
| on: | ||
| pull_request: | ||
| push: | ||
| # Sequence of patterns matched against refs/heads | ||
| branches: | ||
| # Push events on main branch | ||
| - main | ||
| # Push events to branches matching refs/heads/release/** | ||
| - "release/**" | ||
|
|
||
| # these should be the only settings that you will ever need to change | ||
| env: | ||
| CONSUL_IMAGE: hashicorppreview/consul-enterprise:1.16-dev # Consul's enterprise version to use in tests. We use this consul image on release branches too | ||
| BRANCH: ${{ github.head_ref || github.ref_name }} | ||
| CONTEXT: "${{ github.actor }}" | ||
|
|
||
| jobs: | ||
| test: | ||
| name: test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: benc-uk/workflow-dispatch@v1.2.2 | ||
| name: test | ||
| with: | ||
| workflow: test.yml | ||
| repo: hashicorp/consul-k8s-workflows | ||
| ref: main | ||
| token: ${{ secrets.ELEVATED_GITHUB_TOKEN }} | ||
| inputs: '{ "context":"${{ env.CONTEXT }}", "repository":"${{ github.repository }}", "branch":"${{ env.BRANCH }}", "sha":"${{ github.sha }}", "token":"${{ secrets.ELEVATED_GITHUB_TOKEN }}", "consul-image":"${{ env.CONSUL_IMAGE }}" }' | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.