* feat: upgraded to node v18, added .nvmrc and updated workflows * build: updated frontend-build, frontend-platform, component-footer & component-header packages * refactor: updated snapshots * refactor: updated snapshots
30 lines
650 B
YAML
30 lines
650 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
npm-test:
|
|
- i18n_extract
|
|
- lint
|
|
- test
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Nodejs Env
|
|
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ env.NODE_VER }}
|
|
- run: make requirements
|
|
- run: make test NPM_TESTS=build
|
|
- run: make test NPM_TESTS=${{ matrix.npm-test }}
|
|
- name: upload coverage
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
fail_ci_if_error: false
|