-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.03 KB
/
unit.yml
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
name: Unit tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
python-version: [3.9]
env:
NAMESPACE: '@plone-collective'
GIT_NAME: volto-authomatic
GIT_USER: 'collective'
GIT_BRANCH: ${GITHUB_REF##*/}
steps:
- name: Main checkout
uses: actions/checkout@v2
# node setup
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# node install
- name: Install dependencies
run: yarn install
- name: Install yo and @plone/generator-volto
run: npm i -g yo @plone/generator-volto
- name: Setup addon testing environment
run: npx -p @plone/scripts addon clone https://github.com/${{env.GIT_USER}}/${{env.GIT_NAME}}.git --branch ${{env.GIT_BRANCH}}
# Unit tests
- name: Unit tests
run: cd addon-testing-project && yarn && CI=true yarn test