mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-26 01:14:19 +08:00
43 lines
840 B
YAML
43 lines
840 B
YAML
name: JS Unit Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- trunk
|
|
- develop
|
|
paths:
|
|
- "**.js"
|
|
- package.json
|
|
- yarn.lock
|
|
- .github/workflows/js-tests.yml
|
|
pull_request:
|
|
paths:
|
|
- "**.js"
|
|
- package.json
|
|
- yarn.lock
|
|
- .github/workflows/js-tests.yml
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
UnitTests:
|
|
name: JavaScript Unit Tests
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
FORCE_COLOR: 2
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Run JavaScript unit tests
|
|
run: npm run test:unit-js
|