Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Setting up unified CI for js repos #235

@achingbrain

Description

@achingbrain

It would be great to get similar syncing of the .github/workflows folder for js repos as maintaining them is tedious work.

There are a few different setups with different CI requirements:

  1. monorepos
  2. repos that only target node.js
  3. repos that target node.js and the browser

I spotted https://github.com/protocol/.github/tree/master/templates/.github/workflows - can we parameterise the repos in config.json to copy from subdirectories under templates? Something simple like:

[{
  "target": "filecoin-project/go-amt-ipld",
  "type": "go"
}, {
  "target": "libp2/libp2p-tcp",
  "type": "js/node"
}, {
  "target": "ipfs/js-datastore-s3",
  "type": "js/isomorphic"
}, {
  "target": "ipfs/js-unixfs",
  "type": "js/monorepo"
}
// etc

Then we can have templates/go, templates/js/monorepo, templates/js/node, templates/js/isomorphic, etc.

What do you think? Some other way?

Also, some repos have unique build requirements, like js-ipfs testing itself with various repos from the https://github.com/ipfs-examples org - I guess maybe the copying of the templates could just overwrite files that are in the templates and leave others alone? Then js-ipfs could have a .github/workflows/examples.yml file that would survive an update to templates/js/monorepo in this repo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions