-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (42 loc) · 1.08 KB
/
testcafe-testing-library.yml
File metadata and controls
43 lines (42 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: testcafe-testing-library
on:
push:
branches:
- "master"
- "alpha"
pull_request:
jobs:
test:
name: "node ${{ matrix.node }} ${{matrix.browser}} ${{ matrix.os }} "
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest]
node: [14, 16, 18]
browser: ["chrome:headless", "firefox:headless"]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v3
- run: npm install
- run: npm run validate
- name: Run TestCafe Tests
uses: DevExpress/testcafe-action@latest
with:
args: "${{ matrix.browser}} tests/testcafe"
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: actions/checkout@v3
- run: npm install
- run: npm run build
- run: ls -asl dist
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}