Skip to content

chore(update): major release 19.0.0 💥 #146

chore(update): major release 19.0.0 💥

chore(update): major release 19.0.0 💥 #146

Workflow file for this run

name: Build & run all tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies # Install all deps
run: yarn
- name: Sync versions # Sync versions
run: yarn syncprojects
- name: Build ngx-translate-cut # Build
run: yarn build
- name: Build Example # Build Example page
run: yarn build:demo --base-href https://bartholomej.github.io/ngx-translate-cut/
- name: Run tests # Build Schematics and move
run: yarn test --configuration=ci --code-coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist/demo