From 77865902ebaf81f9a5c593c070db0b54b4426756 Mon Sep 17 00:00:00 2001 From: necessarylion Date: Wed, 29 Nov 2023 20:18:06 +0630 Subject: [PATCH] add workflow to run test --- .github/workflows/test.yaml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e69de29..b09c9c7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -0,0 +1,43 @@ +name: Release + +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + + services: + postgres: + image: postgres:latest + env: + POSTGRES_DB: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_USER: postgres + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + redis: + image: redis + ports: + - 6379:6379 + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + with: + sdk: stable + - name: Activate melos + run: dart pub global activate melos + - name: Run Tests + run: melos test