-
Notifications
You must be signed in to change notification settings - Fork 61
51 lines (44 loc) · 1.13 KB
/
test.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
name: Test
on:
pull_request:
branches:
- lts-2025
workflow_call:
inputs:
branch:
description: 'The current branch'
default: lts-2025
type: string
required: false
secrets:
NPM_PACKAGES_TOKEN:
description: 'NPM_PACKAGES_TOKEN'
required: true
SAUCE_ACCESS_KEY:
description: 'SAUCE_ACCESS_KEY'
required: true
env:
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'lts-2025' }}
jobs:
unit-test:
runs-on: [ self-hosted, master ]
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}
- uses: actions/setup-node@v3
with:
registry-url: 'https://packages.nuxeo.com/repository/npm-public/'
scope: '@nuxeo'
node-version: 18
- name: delete cache
run: npm cache clean -f
- name: Install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm install
- name: Unit tests
env:
SAUCE_USERNAME: nuxeo-web-ui
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm run test