Skip to content

Commit

Permalink
Merge pull request #9 from estruyf/dev
Browse files Browse the repository at this point in the history
Fix status and duration
  • Loading branch information
estruyf authored Mar 5, 2024
2 parents 4b54172 + 798a3ab commit c3208d5
Show file tree
Hide file tree
Showing 17 changed files with 4,324 additions and 70 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@ concurrency:
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm run test:jest

build:
runs-on: ubuntu-latest
needs: test
environment:
name: npm
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@ on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm run test:jest

build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/testing-container.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: E2E Testing
name: E2E Testing (Container)

on:
workflow_dispatch:
Expand All @@ -11,8 +11,8 @@ jobs:
image: mcr.microsoft.com/playwright:v1.41.1-jammy

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## [1.5.1]

- [#8](https://github.com/estruyf/playwright-github-actions-reporter/issues/8): Fix for missing duration and status property

## [1.5.0]

- [#6](https://github.com/estruyf/playwright-github-actions-reporter/issues/6): Included logic to retrieve status from the test case when no results are available
Expand Down
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: "./src",
testMatch: ['**/*.test.ts'],
};
Loading

0 comments on commit c3208d5

Please sign in to comment.