From d174bb024d63cb55b454fbff64110a6cf915eac2 Mon Sep 17 00:00:00 2001 From: Filippo Menchini <33838929+filippomenchini@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:48:17 +0100 Subject: [PATCH] End-to-end tests Added end-to-end tests --- .github/workflows/ci.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a8df4f0..59d4256 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,3 +19,23 @@ jobs: - name: Run tests run: dart test + + e2e-tests: + name: "End-to-end tests" + runs-on: "ubuntu-latest" + needs: unit-tests + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Dart setup + uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Run end-to-end tests + run: | + TIDAL_CLIENT_ID=`echo ${{ secrets.TIDAL_CLIENT_ID }} | base64 --decode` + TIDAL_CLIENT_SECRET=`echo ${{ secrets.TIDAL_CLIENT_SECRET }} | base64 --decode` + dart run --define=TIDAL_CLIENT_ID=$TIDAL_CLIENT_ID --define=TIDAL_CLIENT_SECRET=$TIDAL_CLIENT_SECRET example/example.dart