Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended to support Configurations added in Azure & with that test results can be categorized based on the config used dev/stage/prod #3

Merged
merged 16 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading