From 9f064a94cc0b80c32396f6cf9e6ed05dc3c7b70d Mon Sep 17 00:00:00 2001 From: julien Date: Sat, 30 Nov 2024 19:30:59 +0100 Subject: [PATCH] ci: adapt test and release jobs --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d98bccd --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: Tests +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + tests: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + - name: Run docker services + run: docker compose -f docker-compose.dev.yml up -d --build + - name: Install dependencies + run: yarn + - name: Install Playwright Browsers + run: yarn playwright install --with-deps + - name: Run Playwright tests + run: yarn playwright test + - uses: actions/upload-artifact@v4 + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 30