-
Notifications
You must be signed in to change notification settings - Fork 1
feat: template provider #35
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
10 commits
Select commit
Hold shift + click to select a range
52dd30a
feat: template provider for composing secrets
dirathea 51a2bfc
fix: end2end test for template provider
dirathea 4ba0249
fix: unused attributes
dirathea b866423
fix: provider refactoring
dirathea a0fbc21
fix: end2end test
dirathea ae09984
fix: use environment to protect end2end test
dirathea d770fd3
feat: split test between short and full test
dirathea a282345
fix: gotestsum install
dirathea bbcddca
fix: ci test reporting
dirathea dd2ae62
feat: docs
dirathea 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
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,77 @@ | ||
| name: End-to-End Tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: read | ||
| checks: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Run End-to-End Tests | ||
| runs-on: ubuntu-latest | ||
| environment: end2end | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
|
|
||
| - name: Setup env via sstart | ||
| uses: dirathea/setup-sstart-env@main | ||
| env: | ||
| INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET: ${{ secrets.INFISICAL_UNIVERSAL_AUTH_CLIENT_SECRET }} | ||
| INFISICAL_UNIVERSAL_AUTH_CLIENT_ID: ${{ secrets.INFISICAL_UNIVERSAL_AUTH_CLIENT_ID }} | ||
| INFISICAL_SITE_URL: https://eu.infisical.com | ||
| with: | ||
| config: | | ||
| providers: | ||
| - kind: infisical | ||
| project_id: 8aded323-e110-4f48-9c7f-24c275358609 | ||
| environment: prod | ||
| path: /github | ||
|
|
||
| - name: Authenticate to Google Cloud | ||
| uses: google-github-actions/auth@v2 | ||
| with: | ||
| credentials_json: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }} | ||
|
|
||
| - name: Set up Cloud SDK | ||
| uses: google-github-actions/setup-gcloud@v2 | ||
|
|
||
| - name: Install Bitwarden CLI | ||
| run: | | ||
| BW_DOWNLOAD_URL=$(curl -s https://api.github.com/repos/bitwarden/cli/releases/latest | grep '"browser_download_url".*linux.*zip' | head -1 | sed -E 's/.*"([^"]+)".*/\1/') | ||
| curl -L "${BW_DOWNLOAD_URL}" -o bw.zip | ||
| unzip -q bw.zip | ||
| chmod +x bw | ||
| sudo mv bw /usr/local/bin/ | ||
| rm bw.zip | ||
| bw --version | ||
|
|
||
| - name: Run all end-to-end tests | ||
| env: | ||
| CGO_LDFLAGS: -lm | ||
| # the rest of env supplied by setup-sstart-env | ||
| run: | | ||
| go install gotest.tools/gotestsum | ||
| echo "Running all end-to-end tests (including tests that require real services)" | ||
| gotestsum --junitfile test-results.xml --format testname -- ./tests/end2end/... | ||
|
|
||
| - name: Publish test results | ||
| if: always() | ||
| uses: EnricoMi/publish-unit-test-result-action@v2 | ||
| with: | ||
| files: test-results.xml | ||
| check_name: End-to-End Test Results | ||
| fail_on: 'nothing' | ||
| comment_mode: off | ||
|
|
||
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
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.