Skip to content

Merge pull request #80 from kylekarpack/dependabot/npm_and_yarn/vite-… #239

Merge pull request #80 from kylekarpack/dependabot/npm_and_yarn/vite-…

Merge pull request #80 from kylekarpack/dependabot/npm_and_yarn/vite-… #239

Workflow file for this run

# 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 and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm ci
- name: Build
run: npm run build
- name: Run Tests
run: npm run test -- --coverage --update
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}