Skip to content

chore(deps-dev): bump @types/node from 18.8.3 to 20.10.0 #501

chore(deps-dev): bump @types/node from 18.8.3 to 20.10.0

chore(deps-dev): bump @types/node from 18.8.3 to 20.10.0 #501

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- name: Login to Registry
uses: docker/login-action@v2
if: ${{ github.ref == 'refs/heads/main' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push Docker images
if: ${{ github.ref == 'refs/heads/main' }}
uses: docker/build-push-action@v3.2.0
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository }}:latest
- name: Fix coverage paths
run: sed -i "s|SF:/.*/src/|SF:/github/workspace/src/|g" coverage/lcov.info
- name: SonarCloud Scan
if: ${{ github.ref == 'refs/heads/main' }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectVersion=${{ github.SHA }}
- name: CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/lcov.info
verbose: true