Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 2.84 KB

File metadata and controls

47 lines (24 loc) · 2.84 KB

Add a test app to an existing project

Prerequisites: A completed "Create a new per-tenant extension (like AL Go) and start developing in VS Code" scenario

  1. On github.com, open Actions on your solution, locate and select Create a new test app and then choose Run workflow. Enter values for name, publisher, and ID range and choose Run workflow

    Create a new test app

  2. If you receive an error, stating that GitHub actions are not allowed to create Pull Requests, the reason for this is that your organizational settings doesn't allow the workflow to create pull requests, you can click the link and proceed to create the pull request manually:

    Pull request not allowed

  3. If you got this error, you can change that behavior under Organization -> Settings -> Actions -> General -> Workflow permissions -> Check Allow GitHub Actions to create and approve pull requests.

    Allow GitHub Actions to create and approve pull requests

  4. When the workflow is done, navigate to Pull Requests, inspect the PR, Merge the pull request and Confirm the merge

    Merge pull request

  5. Under Actions, you will see that a Merge pull request CI workflow has been kicked off

    Merge pull request runningimage

  6. If you wait for the workflow to complete, you will see that it fails.

    Fail

  7. Inspecting the build, you can see the details of the error.

    Test failure

  8. To fix this, open VS Code, pull changes from the server using the sync button, open the HelloWorld.Test.al file and fix the test message.

    Bug fix

  9. Stage, Commit, and Push the change. On github.com, under Actions you will see that your check-in caused another CI workflow to be kicked off.

    CI workflow

  10. This time it should be passing and if you investigate the CI/CD workflow, you will see that the deploy step has been skipped as no environment existed.

    Success


back