1.0.2 • Published 4 months ago

@js-soft/codemagic-tools v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

codemagic-tools

GitHub Actions CI npm version

Codemagic Tools is a collection of tools to be used in Codemagic CI/CD pipelines.

Installation

npm install @js-soft/codemagic-tools

Usage

Teams Messaging

Develop Messages

jscm teams-develop --platform <platform> --projectName <projectName>

This command will inform about a new development build and additionally provide a link to the build. In case of a failed build it will also provide a link to the build log.

Production Messages

jscm teams-publish --platform <platform> --projectName <projectName>

This command will inform about an app version, that was released in a store. It additionally provides a link to the build logs.

Testing

For testing a JSON like created in Codemagic is provided. Additionally a bash-script, which can be used to test the command is provided. Upon execution the test script will ask you to specify the following variables:

  • webhook - webhook url you want to send to / or just some valid https-address
  • BuildId - a string
  • ProjectId - a string
  • buildNumber - a number

After preparation of your local environment the script will execute the jscm command.

It will execute both possible command:

  • teams-develop (in failed/successful state/without artifacts)
  • teams-production (in failed/successful state/without artifacts)

This will result in 6(4 failed/2 successful) messages being sent to the specified teams channel.

Calling the test script

./test/test_teams_messaging.sh

License

MIT

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

5 months ago

0.0.3

5 months ago

0.0.2

6 months ago

0.0.1

6 months ago