Once you create a CI job in ACCELQ, you can invoke it as part of a Github pipeline by setting up the ACCLEQ job as a Github Action.
Adding ACCELQ Action to a new Project
Go to your Github Repository. Navigate to Actions, and from the list of available sample template workflows, select any.
Search and select ACCELQ Github-A Connect as shown below
Copy the template code and paste it into the editor. Update the field values as shown below.
Commit and go to Actions to see the run output
Adding ACCELQ Action to an existing workflow
- Go to your Github repository. Navigate to the folder .github > worflows > {your YML file}
- Edit the YML file, and on the right side marketplace section search and select ACCELQ Github-A Connect
- Copy the template code and paste it into the editor. Follow the steps as in the above section.
name: ACCELQ Github Action CI
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ACCELQ Github-A Connect
# You may pin to the exact commit or the version.
# uses: accelq/accelq-ci-github-actions@953369c4991322d0eb25d68f449a7d8c574c58d1
uses: accelq/accelq-ci-github-actions@v1.1
with:
# Your ACCELQ Application URL in the exact following format: https://<hostname>:<port_num>
appURL: "https://accelq.io"
# Your ACCELQ User ID
userName: "abc@accelq.com"
# API key available in Profile section of ACCELQ
apiKey: "XXXXXXXXXXXXXXXXXXXX"
# Tenant Code displayed in the Profile section of ACCELQ
tenantCode: "accelq"
# This ID should come from the CI job you saved in ACCELQ application
jobId: "23"
# Run Params(optional) should be JSON string form example: '{"username": "John Todd", "password": "bxW&=UVw"}'
runParam: '{"username": "XXXX", "password": "XXXXX"}'
Comments
0 comments
Please sign in to leave a comment.