From 9ac01ebfbadc3d5d2f67e057a2432c82bd30cc8f Mon Sep 17 00:00:00 2001 From: Clint Purser Date: Thu, 2 Oct 2025 22:42:51 -0400 Subject: [PATCH] add .github/ folder --- .github/workflows/CODEOWNERS | 2 ++ .github/workflows/dependabot.yaml | 10 ++++++++++ .github/workflows/test.yaml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .github/workflows/CODEOWNERS create mode 100644 .github/workflows/dependabot.yaml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/CODEOWNERS b/.github/workflows/CODEOWNERS new file mode 100644 index 0000000..85a8214 --- /dev/null +++ b/.github/workflows/CODEOWNERS @@ -0,0 +1,2 @@ +* @clintpurser +* @viamrobotics/mobile \ No newline at end of file diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml new file mode 100644 index 0000000..5a9b2e5 --- /dev/null +++ b/.github/workflows/dependabot.yaml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + - package-ecosystem: "pub" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..44f192f --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: [ubuntu-large] + container: + image: ghcr.io/cirruslabs/flutter:latest + + steps: + - uses: actions/checkout@v4 + + - run: flutter --version + - run: flutter pub get + + # Verify formatting in all dart files + - name: Verify formatting + run: dart format --line-length=140 --set-exit-if-changed $(find ./lib -name "*.dart" -not -path "./lib/proto/*") + + - name: Analyze project source + run: dart analyze + + # TODO: add tests + # - name: Run tests + # run: flutter test