From 2b8e84432eb0546021f9cc987ced9d30abbcf55f Mon Sep 17 00:00:00 2001 From: Barabas Raffai Date: Thu, 18 Apr 2024 20:33:15 +0100 Subject: [PATCH] Fix CI --- .github/workflows/main.yml | 2 +- frontend/lint.sh | 2 +- .../firmware_api_test/firmware_api_test.dart | 19 +++++++++++++++++++ frontend/test/firmware_api_test/util.dart | 19 +++++++++++++++++++ 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f6e527c..c4860fdc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -260,7 +260,7 @@ jobs: run: flutter pub run build_runner build - name: Test - run: flutter test --coverage + run: flutter test --coverage --exclude-tags=api - name: Coverage clean-up run: > diff --git a/frontend/lint.sh b/frontend/lint.sh index cbd16b4a..f165cc40 100755 --- a/frontend/lint.sh +++ b/frontend/lint.sh @@ -2,6 +2,6 @@ set -eo pipefail -flutter test +flutter test --exclude-tags=api flutter analyze dart format -o none --set-exit-if-changed lib test diff --git a/frontend/test/firmware_api_test/firmware_api_test.dart b/frontend/test/firmware_api_test/firmware_api_test.dart index c9358ccf..300819c7 100644 --- a/frontend/test/firmware_api_test/firmware_api_test.dart +++ b/frontend/test/firmware_api_test/firmware_api_test.dart @@ -1,3 +1,22 @@ +/* + * Copyright 2022 Barabas Raffai + * + * This file is part of ShrapnelDSP. + * + * ShrapnelDSP is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * ShrapnelDSP is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * ShrapnelDSP. If not, see . + */ + @Tags(['api']) library; diff --git a/frontend/test/firmware_api_test/util.dart b/frontend/test/firmware_api_test/util.dart index 68432ad2..eb02c93f 100644 --- a/frontend/test/firmware_api_test/util.dart +++ b/frontend/test/firmware_api_test/util.dart @@ -1,3 +1,22 @@ +/* + * Copyright 2022 Barabas Raffai + * + * This file is part of ShrapnelDSP. + * + * ShrapnelDSP is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * ShrapnelDSP is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * ShrapnelDSP. If not, see . + */ + import 'dart:io'; import 'package:esp_softap_provisioning/esp_softap_provisioning.dart';