├── Dockerfile ├── LICENSE ├── README.md ├── action.yml └── preview.jpg /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM steebchen/flutter 2 | 3 | LABEL version="1.1.0" 4 | LABEL name="flutter" 5 | LABEL repository="http://github.com/steebchen/flutter" 6 | LABEL homepage="http://github.com/steebchen/flutter" 7 | 8 | LABEL maintainer="Luca Steeb " 9 | LABEL com.github.actions.name="Flutter CLI" 10 | LABEL com.github.actions.description="Provides the flutter binary to test and build your app." 11 | LABEL com.github.actions.icon="terminal" 12 | LABEL com.github.actions.color="purple" 13 | 14 | COPY LICENSE README.md / 15 | 16 | ENTRYPOINT ["flutter"] 17 | CMD ["help"] 18 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Luca Steeb 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Github Action for Flutter CLI 2 | 3 | This action provides `flutter` for Github Actions. 4 | 5 | ## NOTE – THIS REPOSITORY IS ARCHIVED 6 | 7 | Please use https://github.com/subosito/flutter-action instead, which is actively maintained and has more features. 8 | 9 | ## Usage examples 10 | 11 | This example first fetches the dependencies with `flutter pub get` and then 12 | builds an apk and runs the flutter tests in parallel. 13 | 14 | `.github/workflows/main.yml` 15 | ```yml 16 | on: push 17 | name: build and test app 18 | jobs: 19 | build: 20 | name: install dependencies 21 | runs-on: ubuntu-latest 22 | steps: 23 | - uses: actions/checkout@v1 24 | 25 | - name: install dependencies 26 | uses: steebchen/flutter@v1.1.0 27 | with: 28 | args: pub get 29 | 30 | - name: run tests 31 | uses: steebchen/flutter@v1.1.0 32 | with: 33 | args: test 34 | 35 | - name: build apk 36 | uses: steebchen/flutter@v1.1.0 37 | with: 38 | args: build apk --release 39 | ``` 40 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'flutter-cli' 2 | description: 'The flutter CLI as a GitHub Action' 3 | runs: 4 | using: 'docker' 5 | image: 'Dockerfile' 6 | branding: 7 | icon: 'terminal' 8 | color: 'purple' 9 | -------------------------------------------------------------------------------- /preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steebchen/flutter/04eb2f877307df7c512351f61dbba8f2f9e94e4d/preview.jpg --------------------------------------------------------------------------------