Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit 281777d

Browse files
authored
Added intro, examples and contributions to readme
1 parent dd5974d commit 281777d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# Introduction
2+
3+
This repository contains an [Azure DevOps Task](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/tasks?view=azure-devops&tabs=yaml) and a [GitHub Workflow Action](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idsteps). See below usage examples to start using this in your CI.
4+
5+
This is currently in very early stages so, features offered are very limited. See [contributing section](#contributing) below if you would like to chip in some features. At this stage, this repo is more of a skeleton upon which we hope to add more functionality. Once this is in a good state, we can be on top of our app size changes and very likely make this repo public.
6+
7+
## Usage examples
8+
9+
- In a Azure DevOps Pipeline
10+
11+
```yml
12+
- task: android-app-size-diff-task@0
13+
inputs:
14+
baseAppPath: test/assets/test.apk
15+
targetAppPath: test/assets/test.apk
16+
summaryOutputPath: summary.md
17+
displayName: Run APK size comparision
18+
```
19+
20+
- In a GitHub Workflow (only after this repo becomes public)
21+
22+
```yml
23+
- uses: microsoft/android-app-size-ci@v1
24+
name: Run APK size comparision
25+
with:
26+
baseAppPath: test/assets/test.apk
27+
targetAppPath: test/assets/test.apk
28+
summaryOutputPath: summary.md
29+
```
30+
131
232
# Contributing
333
@@ -12,3 +42,37 @@ provided by the bot. You will only need to do this once across all repos using o
1242
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
1343
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
1444
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
45+
46+
## Setting up development
47+
48+
Starting by cloning the repository. If your changes are small, feel free to open a PR with changes and the CI will take care of testing that everything still works with your changes. For something more long term or local testing, read on.
49+
50+
When contributing, please be aware that **this repo will go public eventually**
51+
52+
### Installations
53+
- Install all global dependencies
54+
```shell
55+
npm install -g typescript
56+
npm install -g ts-node
57+
npm install -g mocha
58+
59+
# Only if you are compiling the GitHub plugin
60+
npm install -g @zeit/ncc
61+
62+
# Only if you are publishing to ADO. Not required for most scenarios
63+
npm install -g tfx-cli
64+
```
65+
- Install all project dependencies
66+
`npm install`
67+
68+
### Running
69+
70+
See `package.json` for full list of npm tasks. The below should be sufficient to get you started
71+
72+
- Build code `npm run build`
73+
- Run ADO plugin locally `npm run adoTask`
74+
- See [ADO Custom Task docs](https://docs.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops#run-the-task) to understand what variables to set - basically all task inputs
75+
- Run all tests `npm run test`
76+
- Likely a better way to test your changes
77+
- Bundle all plugins `npm run bundle`
78+

0 commit comments

Comments
 (0)