From d441ba4073bd93459f2330b1cdbb85caea26c1a1 Mon Sep 17 00:00:00 2001 From: emusute1212 Date: Wed, 15 Feb 2023 01:29:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20CI/CD=E3=81=AE=E3=81=8A=E8=A9=A6?= =?UTF-8?q?=E3=81=97=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 26 ++++++++++++++++++++++++++ .github/workflows/ci.yml | 16 ++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/cd.yml create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..5a222ed --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,26 @@ +name: CD +on: + push: + tags: + - 'v*' +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + - name: Download Flutter packages + run: flutter pub get + - name: Create AAB + run: flutter build appbundle + - name: Create iOS + run: flutter build ipa + - name: Zip builds + run: + - name: Artifact builds + uses: actions/upload-artifact@v3 + with: + name: code-coverage-report + path: + - build/app/outputs/bundle/release/app-release.aab + - build/build/ios/ipa \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0dc4ecd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: CI +on: push +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + - name: Download Flutter packages + run: flutter pub get + - name: Flutter format + run: flutter format --set-exit-if-changed + - name: Flutter analyze + run: flutter analyze --fatal-infos --fatal-warnings + - name: Flutter test + run: flutter test \ No newline at end of file