Update imageloader for newest version #219
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
python-version: [3.8] | |
env: | |
GIT_NAME: volto-blocks | |
NAMESPACE: "@kitconcept" | |
GIT_USER: 'kitconcept' | |
steps: | |
- name: Main checkout | |
uses: actions/checkout@v2 | |
# node setup | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
# node install | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Install yo and @plone/generator-volto | |
run: npm i -g yo @plone/generator-volto | |
- name: Extract branch name | |
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Setup addon testing environment | |
run: npx -p @plone/scripts addon clone https://github.com/${{env.GIT_USER}}/${{env.GIT_NAME}}.git --branch ${{ steps.extract_branch.outputs.branch }} | |
# Unit tests | |
- name: Unit tests | |
run: cd addon-testing-project && CI=true yarn test |