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

Update action, add bundling and remove committed dependencies. #42

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 12 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,24 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/gallium
- run: npm ci
- run: npm run build
- run: npm test

# Run this action on itself. Even if there is no JUnit reports, the action should run silently without errors.

ubuntu-action-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
with:
name: "unbuntu unit tests"
access-token: ${{ secrets.GITHUB_TOKEN }}
path: "**/TEST-*.xml"

macos-action-tests:
runs-on: macos-latest
action-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- uses: ./
with:
name: "macos unit tests"
name: ${{ matrix.os }} unit tests
access-token: ${{ secrets.GITHUB_TOKEN }}
path: "**/TEST-*.xml"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
32 changes: 14 additions & 18 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
name: "Junit Report to Annotations"
description: "Create an annotation of the test run summaryand also list first n failed tests as seporate annotations"
name: Junit Report to Annotations
description: Create an annotation of the test run summary and also list first n failed tests as separate annotations
branding:
icon: "box"
color: "green"
icon: box
color: green
inputs:
access-token:
description: "github token"
description: github token
required: true
path:
description: "glob to junit xml files"
description: glob to junit xml files
required: true
default: "**/TEST-*.xml"
includeSummary:
description: "include summary annotation"
required: true
default: true
numFailures:
description: "max number of failed tests to include"
require: true
default: 10
description: max number of failed tests to include
required: true
default: "10"
name:
description: "Name of the Check in the github actions UI"
require: true
default: "Junit Results"
description: Name of the Check in the github actions UI
required: true
default: Junit Results
runs:
using: "node12"
main: "index.js"
using: node16
main: dist/index.js
Loading