diff --git a/.github/workflows/demo-server-deploy.yml b/.github/workflows/demo-server-deploy.yml index ff16b44..628f406 100644 --- a/.github/workflows/demo-server-deploy.yml +++ b/.github/workflows/demo-server-deploy.yml @@ -1,9 +1,10 @@ name: "Deploy app to demo server (demo.archtika.com)" on: - push: - branches: - - main + workflow_run: + workflows: ["Playwright tests"] + types: + - completed env: SERVER_USER: root diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 0000000..6bc4312 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,23 @@ +name: "Playwright tests" + +on: + push: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Enter Nix development environment + run: nix develop .#web + + - name: Run playwright tests + run: npm run test \ No newline at end of file