From 30ee3d810db7690f7e3aa3c95a737adb93c3e212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl?= Date: Mon, 20 Nov 2023 19:08:23 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20build=20workflow=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7fa2f0d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + paths-ignore: + - "**.md" + +jobs: + analyze: + name: Analyze on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: '11.x' + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + - name: Log Dart/Flutter versions + run: | + dart --version + flutter --version + - name: Prepare dependencies + run: flutter pub get + - name: Analyse the repo + run: flutter analyze lib example/lib + - name: Run tests + run: flutter test