標題: The last thing you need is a set [打印本頁] 作者: Mitu899 時間: 2023-12-27 15:30 標題: The last thing you need is a set The test but running the workflow as-is will trigger the file to run. This script is used to start the test database. It does not come with a virtual environment used by default. In order for this to work properly you will set up another custom action that will be installed into the environment. Create a new folder named Copy which contains a file named Copy This action should do two things Download the plugin into a virtual environment Make the plugin executable So you can use the command Paste the following into Copy to handle these tasks The first step in the code snippet above downloads the plugin sources into the virtual environment. It is then used to set this source as an executable. Once the custom action is complete, add it to the job before the step of running the test. Copy the test. of environment variables.
The environment variables that your app photo editing servies lication expects are the database's authentication keys for signing. You can add them to your virtual environment using the keyword. Environment variables can be added at the workflow level to apply them to each job or to specific jobs. In your case you would add them at workflow level so that the variables are available in every job. Note that it is generally best practice to expose only the required environment variables to each job individually. For simplicity in this article variables will be exposed to each job. Add the key to your workflow and define the three variables you need to copy At this point you can commit these changes and push them to the branch to .
publish the changes to the workflow Copy then merge these changes to the branch by running the following command to trigger a new run of the workflow Copy Note In this step you will enter the editor in the terminal. Click and exit the editor. This job will take longer than the unit test job because it must install the startup database and then execute all the tests. After the job completes you should see the following success message Successful integration and unit testing. Adding the End-to-End Test Job Now the unit and integration tests are running in the workflow The last set.