Skip to content

Commit

Permalink
Merge pull request #3 from techconative/configId
Browse files Browse the repository at this point in the history
Extended to support Configurations added in Azure & with that test results can be categorized based on the config used dev/stage/prod
  • Loading branch information
sundarlogan authored May 9, 2024
2 parents 894814a + d087e97 commit 1441491
Show file tree
Hide file tree
Showing 15 changed files with 8,936 additions and 2,801 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/publish.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ on:
branches:
- main
- master
env:
AZURE_DEVOPS_PAT: "${{ secrets.AZURE_DEVOPS_PAT }}"
ORGANIZATION_URL: "${{ secrets.ORGANIZATION_URL }}"
PROJECT_ID: "${{ secrets.PROJECT_ID }}"
PLAN_ID: 12
SUITE_ID: 14
RUN_NAME: 'sample'
CONFIGURATION_NAME: 'stage'

jobs:
test:
Expand All @@ -39,4 +47,4 @@ jobs:
- name: Install modules
run: yarn
- name: Run tests
run: yarn test
run: yarn test
12 changes: 12 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
branches:
- main

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/npm"
- "@semantic-release/git":
assets:
- package.json
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"

12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,14 @@
[![version](https://img.shields.io/npm/v/azuredevops-test-reporter-ts.svg)](https://www.npmjs.com/package/azuredevops-test-reporter-ts)
[![downloads](https://img.shields.io/npm/dt/azuredevops-test-reporter-ts.svg)](https://www.npmjs.com/package/azuredevops-test-reporter-ts)

Using this package with [WDIO Azure Devops Service](https://github.com/techconative/wdio-azure-devops-service) to publish WDIO test results to Azure Test Plan.
Using this package with [WDIO Azure Devops Service](https://github.com/techconative/wdio-azure-devops-service) to publish WDIO test results to Azure Test Plan.

### Pre-requisite to run test:
create a `.env` file at root directory of this project and add below values:
- `AZURE_DEVOPS_PAT`=***$$##***
- `ORGANIZATION_URL`=https://dev.azure.com/****
- `PROJECT_ID`=***##***
- `PLAN_ID`=1
- `SUITE_ID`=2
- `RUN_NAME`=sample
- `CONFIGURATION_NAME`=stage
Loading

0 comments on commit 1441491

Please sign in to comment.