-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.11 KB
/
javascript-tests.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
name: Javascript Tests
on:
schedule:
- cron: 0 */6 * * *
pull_request:
branches: [main]
workflow_dispatch:
inputs:
# trunk-ignore(checkov/CKV_GHA_7)
cli-version:
type: string
required: false
description:
The version of `analytics-cli` to use. Defaults to the latest specified in
`analytis-uploader`.
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Dependencies
run: |
pnpm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright Tests
if: ${{ always() }}
uses: ./.github/actions/analytics-uploader-wrapper
with:
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
cli-version: ${{ inputs.cli-version }}
junit-paths: "**/*_test.xml,**/junitresults-*.xml"
run: npm run test