This project describe the continous integration and delivery processes using github workflow on forms and formatters.
These processes aim to improve the quality and to reduce the time taken to deliver it.
- Github workflow files must be added under
.github/workflowsfolder into your form root folder. - Swift package configuration file must be added into your form root folder to test yourself. (if not default one will be used)
- Tools configuration files *.yml could be added into your form root folder (if not default one will be used).
đź’ˇ Open the terminal, go to your form root folder and launch this command line to automatically download it.
curl -fsSL https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/form/scripts/check_files.sh | bash -sâś… Check Workflow
To ensure code quality two types of tools are executed on code: linter to lint and compiler to build.
lint or linters are tools to check source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.
We use swiftlint to lint source code
A configuration file could be integrated .swiftlint.yml in form root folder to specify where the source file are.
đź’ˇ Then just run swiftlint at project root to check yourself.
We use iblinter to lint storyboards
A configuration file could be integrated .iblinter.yml in form root folder specify where the source file are.
đź’ˇ Then just run iblinter at project root to check yourself.
We use jsonlint but any JSON linter can do the trick.
Build step use swift build on iOS to check if there is no build errors in code.
The dependencies are defined in Package.swift, in particular the 4d-for-ios sdk (mock)
đź’ˇ You must be connected on github to read the check log.
🚀 Release Workflow
This workflow help you to provide bundled archive of your extension to share it.
When you create a new release on github the bundled archive is automatically attached to the release.
- Github workflow files must be added under
.github/workflowsfolder into your form root folder.
đź’ˇ Open the terminal, go to your formatter root folder and launch this command line to automatically download it.
curl -fsSL https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/formatter/scripts/check_files.sh | bash -sBadge(image) could be added to project readme or in any markdown or html files to display continous integration result.
[](https://github.com/:user/:repo/actions?workflow=check)Badge to release with download could also be added using service like https://shields.io/
[](https://github.com/:user/:repo/releases/latest/download/:repo.zip)|You could find an automatically generated list in topic-workflow
| Repository | Workflow | Download |
|---|---|---|
| 4d-for-ios/form-login-SignInWithApple |