GitHub Actionsãå©ç¨ãã¦Flutterã¢ããªããã«ãããå ´åããã«ãåã«SDKããã¡ãã¡è¨å®ããå¿ è¦ãããã¾ããä¸ã®ä¾ã§ã¯ããã«1åè¿ãããã¦ãããCIã®æéãããªãå§è¿«ãã¦ãããã¨ããããã¾ãã GitHub Actionsã«ã¯ãã£ãã·ã¥ã®æ©è½ãåå¨ãããããFlutter SDKããã£ãã·ã¥ãããã¨ã§CIæéãå¤§å¹ ã«åæ¸ãããã¨ãè¦è¾¼ãã¾ãã 1.Cacheã¢ã¯ã·ã§ã³ã使ã #...ç¥... 'on': push: branches: - master env: flutter_version: '2.10.0' jobs: build_and_deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: search flutter cache uses: actions/cache@
æ¦è¦ ã©ããã@daiki1003ã§ãï¼Flutterã§ããªãã§ãããã§ãããæ®æ®µéçºãããä¸ã§ å®å®ãã¦é«å質ãªãããã¯ãããªãªã¼ã¹ããªããã°ãªããªããããCIã¯æ¬ ãããªãåå¨ã«ãªã£ã¦ãã¾ããã ãããªå¿ è¦ä¸å¯æ¬ ãªCIã§ããã1ç§ã§ãæ©ãçµãã£ã¦ã»ããã§ãããï¼ æ¯åã®ãã¨ãªã®ã§ãå°ãã§ãæ¹åã§ããã°è¤å©ã®ããã«å¹ãã¦ããã®ã§ ãã²æ¬è¨äºãèªãã§ä½¿ããã¨ããã¯ä½¿ã£ã¦ã¿ã¦ãã ãããï¼ æçµçã«å®æããyamlãè²¼ãä»ããã®ã§ã³ãã㧠使ããã¨æãã¾ãã ð ä»åCIã®æ¹åã§è¡ã£ãã®ã¯ä¸è¨ï¼ç¹ã§ãã ã»Flutterã¤ã³ã¹ãã¼ã«ã®ãã£ãã·ã¥ ã»flutter pub getã®ãã£ãã·ã¥ ã»build_runnerã®ãã£ãã·ã¥ ã§ã¯è¡ã£ã¦ã¿ã¾ããã¼ï¼ Flutterã®ã¤ã³ã¹ãã¼ã«ã®ãã£ãã·ã¥ããã ãããã ãã§ãçµæ§å¹æçã§ããã ããæ¹ã¯2éãããã¨æãã¾ãã ã»subosito/flutt
GitHub Actionä¸ã§flutterã®ãã¹ããå®è¡ããçµæãè¦ãã¨ããjobã®å®è¡ãã°ãè¦ãã®ã¯å°ã大å¤ã§ããããã©ããæå/失æãããã²ã¨ç®ã§ã¯åããã¥ããã§ããã ä»åã¯âã®ããã«ãã¹ãã®çµæãè¦ãããå½¢ã§Checksä¸ã«è¡¨ç¤ºããæ¹æ³ãç´¹ä»ãã¾ãã äºåæºå ç¹ã«ããã¾ããããã¹ããã¡ã¤ã«ãæºåããflutter testã§ãã¹ããå®è¡ã§ããç¶æ ã«ãã¾ãã ymlãã¡ã¤ã«ã®ä½æ ã¾ãã¯ã¯ã¼ã¯ããã¼ãå®è¡ããããã®ymlãã¡ã¤ã«ãããªãã¸ããªå ã®.github/workflowsã«ä½æãã¾ããååã¯ã好ã¿ã§ãããã§ã¯test.ymlã¨ãã¾ã name: test on: workflow_dispatch: pull_request: types: [opened, synchronize] push: branches: - main env: FLUTTER_VERSION:
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}