Skip to content

Update dependencies #1116

Update dependencies

Update dependencies #1116

Workflow file for this run

name: "[TEST] NewsFragments"
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Setup node ${{ matrix.version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
cache: "npm"
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ubuntu-latest-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
ubuntu-latest-node-
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Build & Test
run: npm test
- uses: SonarSource/sonarcloud-github-action@master
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}