[ut] fix nodejs installation in libertine container #384
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
python-version: [3.8] | |
steps: | |
# setup Node.js | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# setup Python | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# editor: run linter and build | |
- run: git submodule update --init | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
# py-backend: install test utils, run linter, collect coverage | |
- run: pip install -U pip | |
- run: pip install pipenv | |
- run: cp -r generic/py-libs/editorconfig-core-py/editorconfig generic/py-backend | |
- run: cp -r generic/py-libs/inotify_simple/inotify_simple.py generic/py-backend/inotify_simple | |
- run: cd generic/py-backend; pipenv install -d | |
# - run: cd generic/py-backend; pipenv run pylint build_utils/*.py fs_utils/*.py helpers/*.py tests/*.py | |
- run: cd generic/py-backend; pipenv run coverage run --source=fs_utils,build_utils,helpers -m pytest | |
- run: cd generic/py-backend; pipenv run coverage xml | |
# collect editor test coverage, publish sum coverage to codeclimate | |
- name: Test & publish code coverage | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: 714d0009fb6cb54edb188259944e27d03fd2a3b9c810d4d2c7755050062925d6 | |
with: | |
coverageCommand: npm test | |
coverageLocations: | | |
editor/coverage/lcov.info:lcov | |
generic/py-backend/coverage.xml:coverage.py |