Repository navigation
85 lines (77 loc) · 2.41 KB
/
Copy pathclient-test.yml
File metadata and controls
85 lines (77 loc) · 2.41 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Client Tests
on:
pull_request:
types: [opened, synchronize]
branches: [main]
paths:
- "client/**"
- ".github/workflows/client**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: 'echo "No checks required" '
fmt-clippy-build:
runs-on: ubuntu-latest
steps:
- run: 'echo "No checks required" '
build-client:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.14.0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
- name: Run type-check
run: pnpm client-type-check
# - name: Publish to Chromatic
# uses: chromaui/action@v1
# with:
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# workingDir: ./client
# - name: BrowserStack Actions
# uses: browserstack/github-actions@v1.0.1
# with:
# username: ${{ secrets.BROWSERSTACK_USERNAME }}
# access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
# build-name: BUILD_INFO
# project-name: REPO_NAME
# - name: 'Start BrowserStackLocal Tunnel'
# uses: 'browserstack/github-actions/setup-local@master'
# with:
# local-testing: 'start'
# local-logging-level: 'all-logs'
# local-identifier: 'random'
# - name: 'Building app'
# run: npm run build
# - name: 'Running application under test'
# run: npm run dev &
# - name: 'Running test on BrowserStack' # Invokes the actual test script that would run on BrowserStack browsers
# run: npm run test:browserstack # See sample test script above
# - name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
# uses: browserstack/github-actions/setup-local@master
# with:
# local-testing: stop
# - name: 'Running application under test'
# run: npm run dev &
# - name: Run tests
# uses: percy/exec-action@v0.3.1
# with:
# custom-command: "npm run test:persy"
# - name: Percy Test
# run: npm run test:persy