feat: add support for managing user mapping #1483
Workflow file for this run
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
name: Test | |
on: [push] | |
jobs: | |
deployment: | |
name: Test the code | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.19" | |
- name: Install Terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_wrapper: false | |
- name: Test with coverage | |
run: go test -parallel 20 -timeout 20m -coverprofile=coverage.txt -coverpkg=./... ./... | |
env: | |
SPACELIFT_API_KEY_ENDPOINT: ${{ secrets.SPACELIFT_API_KEY_ENDPOINT }} | |
SPACELIFT_API_KEY_ID: ${{ secrets.SPACELIFT_API_KEY_ID }} | |
SPACELIFT_API_KEY_SECRET: ${{ secrets.SPACELIFT_API_KEY_SECRET }} | |
SPACELIFT_PROVIDER_TEST_IPS: ${{ secrets.SPACELIFT_PROVIDER_TEST_IPS }} | |
SPACELIFT_PROVIDER_TEST_GITLAB_API_HOST: https://gitlab.com | |
SPACELIFT_PROVIDER_TEST_GITLAB_WEBHOOK_ENDPOINT: ${{ secrets.SPACELIFT_PROVIDER_TEST_GITLAB_WEBHOOK_ENDPOINT }} | |
SPACELIFT_PROVIDER_TEST_GITLAB_WEBHOOK_SECRET: ${{ secrets.SPACELIFT_PROVIDER_TEST_GITLAB_WEBHOOK_SECRET }} | |
SPACELIFT_PROVIDER_TEST_GITHUB_ENTERPRISE_API_HOST: https://api.github.com | |
SPACELIFT_PROVIDER_TEST_GITHUB_ENTERPRISE_WEBHOOK_SECRET: ${{ secrets.SPACELIFT_PROVIDER_TEST_GITHUB_ENTERPRISE_WEBHOOK_SECRET }} | |
SPACELIFT_PROVIDER_TEST_GITHUB_ENTERPRISE_APP_ID: 359303 | |
SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_API_HOST: private://bitbucket-datacenter-agent-pool | |
SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_WEBHOOK_SECRET: ${{ secrets.SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_WEBHOOK_SECRET }} | |
SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_WEBHOOK_URL: ${{ secrets.SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_WEBHOOK_URL }} | |
SPACELIFT_PROVIDER_TEST_BITBUCKET_DATACENTER_USER_FACING_HOST: http://localhost:7990 | |
SPACELIFT_PROVIDER_TEST_AZURE_DEVOPS_ORGANIZATION_URL: https://dev.azure.com/spacelift-ci0377 | |
SPACELIFT_PROVIDER_TEST_AZURE_DEVOPS_WEBHOOK_PASSWORD: ${{ secrets.SPACELIFT_PROVIDER_TEST_AZURE_DEVOPS_WEBHOOK_PASSWORD }} |