Skip to content

Commit 13f09bc

Browse files
authored
check tests with actions (#3)
* check tests with actions * check tests with actions * check tests with actions, set version * check tests with actions, set version * changed path for tests * added github workspace env * check tests with actions, set version * added github workspace env * updated to compare with head * changed config * changed config * minor change * minor change * minor change * minor change * skipped 2 tests * skipped 2 tests * skipped tests * skipped 2 tests * skipped tests * updated config * updated config * fixed head * fixed branch * fixed branch * fixed branch commits * fixed branch commits * fixed branch commits * fixed branch commits * fixed branch commits * fixed branch commits * fixed branch commits * add test label * add test label * add test label * add only label * add only label * added .only checks * fixed .only checks * restored tests
1 parent aa2edeb commit 13f09bc

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on: [push]
2+
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
name: Check Tests
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: testomatio/check-tests@master
13+
with:
14+
framework: codeceptjs
15+
tests: "./todomvc-tests/**_test.js"
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
has-tests-label: true
18+

todomvc-tests/create-todos_test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ Scenario('Create a new todo item', async (I, TodosPage) => {
1717
TodosPage.seeNumberOfTodos(1)
1818

1919
I.saveScreenshot('create-todo-item.png')
20-
})
20+
});
2121

2222
Scenario('Create multiple todo items', async (I, TodosPage) => {
2323
I.say('Given I have an empty todo list')
24-
2524
I.say('When I create todos "foo", "bar" and "baz"')
2625
TodosPage.enterTodo('foo')
2726
TodosPage.enterTodo('bar')

0 commit comments

Comments
 (0)