You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ Documentation in [/docs](/docs) is auto-generated by [terraform-plugin-docs](htt
60
60
61
61
## Developing The Provider
62
62
63
+
### Set Up Your Local Environment
64
+
63
65
You'll first need [Go](http://www.golang.org) installed on your machine (version 1.16+ is *required*).
64
66
65
67
1. Clone the git repository.
@@ -75,6 +77,34 @@ You'll first need [Go](http://www.golang.org) installed on your machine (version
75
77
$ make build
76
78
```
77
79
80
+
81
+
### Use a Remote Environment via GitPod
82
+
83
+
You can choose to use your own development environment if desired, however a `.gitpod.yml` file is included within the repository to allow the use of [GitPod](https://gitpod.io/) easily.
84
+
This will allow you to use GitPod's integration with GitHub to quickly start a web-based development environment including Go and Docker, which are necessary
85
+
for running tests. To use GitPod's integration, you have two different options described below. After you've completed one of the two options, your development environment
86
+
will be ready within a minute or two. As part of starting up, your development environment will automatically start up the `gitlab-ce` container necessary for running
87
+
tests, as described in the "Running Tests/Option 1" section below.
88
+
89
+
90
+
#### Option 1: Manually navigate to GitPod
91
+
92
+
You can manually sign in and open your workspace within GitPod by following these steps:
93
+
94
+
1. Navigate to [GitPod](https://gitpod.io/)
95
+
1. Click [Login](https://gitpod.io/login/) if you have an account, or [Sign Up](https://www.gitpod.io/#get-started) if you do not.
96
+
1. Click on "Continue with GitHub" and authorize GitPod to access your account.
97
+
1. After you've signed in, select "Projects" along the top menu, click on your forked `terraform-provider-gitlab` project
98
+
1. Hover over either the main branch for your fork or the branch you created for your fork, and click "New Workspace"
99
+
100
+
#### Option 2: Open your GitPod Workspace directly via URL
101
+
102
+
1. Navigate to your fork of the `terraform-provider-gitlab` project in GitHub
103
+
1. Select the branch you want to develop
104
+
1. Add `https://gitpod.io/#` to the front of your URL
105
+
106
+
Your workspace will automatically open the repository and branch that you selected in GitHub.
107
+
78
108
### Running Tests
79
109
80
110
The acceptance tests can run against a Gitlab instance where you have a token with administrator permissions (likely not gitlab.com).
0 commit comments