diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8640582 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Run Tests + +on: + push: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Dart + uses: dart-lang/setup-dart@v1 + with: + sdk: '2.19.0' + + - name: Get Dependencies + run: dart pub get + + - name: Run Tests + run: dart test diff --git a/pubspec.yaml b/pubspec.yaml index 4d0aecb..e2515fe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,6 +13,6 @@ dependencies: collection: '>=1.14.13' dev_dependencies: - lint: ^2.2.0 + lint: ^2.0.20 test: ^1.14.2