-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (58 loc) · 1.8 KB
/
test-meticulous.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Workflow for automated Meticulous tests
name: Tests - react-bmi-calculator
on:
push:
branches:
- releases/*
pull_request: {}
permissions:
actions: write
contents: read
statuses: write
pull-requests: write
packages: read
jobs:
test:
name: Report diffs (using app url)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js LTS
id: nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
cache: yarn
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
tests/react-bmi-calculator/node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}
- name: Install react-bmi-calculator dependencies
working-directory: ./tests/react-bmi-calculator
run: yarn install --frozen-lockfile --non-interactive
- name: Build react-bmi-calculator
working-directory: ./tests/react-bmi-calculator
run: yarn build
- name: Serve react-bmi-calculator
working-directory: ./tests/react-bmi-calculator
run: |
yarn serve &
sleep 4
- name: Install report-diffs-action dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: Use local dockerfile
run: node ./scripts/use-local-dockerfile.js
- name: Run report-diffs-action
id: test
uses: ./
with:
api-token: "${{ secrets.METICULOUS_API_TOKEN }}"
app-url: http://localhost:3000
tests-file: tests/react-bmi-calculator/meticulous.json
test-suite-id: "test Meticulous with app url"