diff --git a/.github/workflows/package-lock.json b/.github/workflows/package-lock.json new file mode 100644 index 0000000..844e082 --- /dev/null +++ b/.github/workflows/package-lock.json @@ -0,0 +1,67 @@ +{ + "name": "workflows", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "dependencies": { + "@playwright/test": "^1.43.1" + } + }, + "node_modules/@playwright/test": { + "version": "1.43.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.1.tgz", + "integrity": "sha512-HgtQzFgNEEo4TE22K/X7sYTYNqEMMTZmFS8kTq6m8hXj+m1D8TgwgIbumHddJa9h4yl4GkKb8/bgAl2+g7eDgA==", + "dependencies": { + "playwright": "1.43.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/playwright": { + "version": "1.43.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.1.tgz", + "integrity": "sha512-V7SoH0ai2kNt1Md9E3Gwas5B9m8KR2GVvwZnAI6Pg0m3sh7UvgiYhRrhsziCmqMJNouPckiOhk8T+9bSAK0VIA==", + "dependencies": { + "playwright-core": "1.43.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.43.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.1.tgz", + "integrity": "sha512-EI36Mto2Vrx6VF7rm708qSnesVQKbxEWvPrfA1IPY6HgczBplDx7ENtx+K2n4kJ41sLLkuGfmb0ZLSSXlDhqPg==", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + } + } +} diff --git a/.github/workflows/package.json b/.github/workflows/package.json new file mode 100644 index 0000000..adeda9f --- /dev/null +++ b/.github/workflows/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@playwright/test": "^1.43.1" + } +} diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 22492c9..9d2072b 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -13,11 +13,21 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' + + - name: Instalar o NodeJS + uses: actions/setup-node@v4 + with: + node-version: '18' - name: Instalar as Bibliotecas do projeto run: | - pip install -r requirements.txt - + python -m pip install --upgrade pip + pip install -U -r requirements.txt + sudo npm install @playwright/test + sudo npx playwright install-deps + rfbrowser init + + - name: Execução dos testes run: | - robot -d results tests + robot -d ./results -v HEADLESS:true tests