Skip to content

aquariuslt/node-browsers-github-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for Yarn/NPM with Bundled Browsers Environment

Use yarn as workflow actions to enable the repository which need to use yarn-only features such as workspaces

And with browsers environment support (Headless Chrome)

Usage

You can use this repository using published yarn packages:

Use Marketplace Alias (Recommend)

Use Github Repo Scheme

workflow "Build and test on push" {
  on = "push"
  resolves = ["Unit Test"]
}

action "Install Dependencies" {
  uses = "aquariuslt/node-browsers-github-actions@master"
  runs = "yarn"
  args = "install"
}

action "Unit Test" {
  uses = "aquariuslt/node-browsers-github-actions@master"
  needs = ["Install Dependencies"]
  args = "test"
  runs = "yarn"
}

Use docker:// Scheme

Sadly, I haven't see any success example on github official action repo .workflow file use this scheme.

workflow "Build and test on push" {
  on = "push"
  resolves = ["Unit Test"]
}

action "Install Dependencies" {
  uses = "docker://aquariuslt/node-10-browsers@master"
}

action "Unit Test" {
  uses = "docker://aquariuslt/node-10-browsers@master"
  needs = ["Install Dependencies"]
  args = "test"
}

Example

You can refer to my blog repo actions.

About

github actions for yarn

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published