Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 9a7288b

Browse files
authored
add workflow for self-testing (#5)
* self tests * run tests on pr
1 parent f2f7a0f commit 9a7288b

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: testcafe-action-workflow
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ${{ matrix.os }}
6+
strategy:
7+
matrix:
8+
os: [ubuntu-latest, windows-latest]
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: testcafe action workflow
12+
uses: ./
13+
with:
14+
args: "chrome"

tests/test.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Workflow</title>
6+
</head>
7+
<body>
8+
<button>Click me</button>
9+
</body>
10+
</html>

tests/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fixture `workflow`
2+
.page `./test.html`;
3+
4+
test('test', async t => {
5+
await t.click('button');
6+
});

0 commit comments

Comments
 (0)