Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
/ jest-action Public archive
forked from rkusa/jest-action

Github Action to run Jest test suite (+ check annotations)

License

Notifications You must be signed in to change notification settings

YouToken/jest-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for Jest (with Annotations)

This Action runs your Jest test suite and adds annotations to the Github check the action is run in.

Annotaiton Example: https://github.com/rkusa/jest-action-example/pull/1/files

Annotation Example

Usage

workflow "Tests" {
  on = "push"
  resolves = ["Jest"]
}

action "Dependencies" {
  uses = "actions/npm@master"
  args = "install"
}

action "Jest" {
  uses = "docker://rkusa/jest-action:latest"
  secrets = ["GITHUB_TOKEN"]
  args = ""
  needs = ["Dependencies"]
}

Secrets

  • GITHUB_TOKEN - Required. Required to add annotations to the check that is executing the Github action.

Environment variables

  • JEST_CMD - Optional. The path the Jest command - defaults to ./node_modules/.bin/jest.

Example

To run Jest, either use the published docker image ...

action "Jest" {
  uses = "docker://rkusa/jest-action:latest"
  secrets = ["GITHUB_TOKEN"]
  args = ""
}

... or the Github repo:

action "Jest" {
  uses = "rkusa/jest-action@master"
  secrets = ["GITHUB_TOKEN"]
  args = ""
}

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Container images built with this project include third party materials. View license information for Node.js, Node.js Docker project, Jest, Go, google/go-github or ldez/ghactions. As with all Docker images, these likely also contain other software which may be under other licenses. It is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

About

Github Action to run Jest test suite (+ check annotations)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 73.1%
  • Dockerfile 13.8%
  • HCL 10.2%
  • Shell 2.9%