Skip to content

Feature/login window v_1.0 #24

Feature/login window v_1.0

Feature/login window v_1.0 #24

Workflow file for this run

name: Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm --prefix users ci
- run: npm --prefix webapp ci
- run: npm --prefix users run test:coverage
- run: npm --prefix webapp run test:coverage
- name: Install cargo-llvm-cov
run: cargo install cargo-llvm-cov --locked
- name: Generate gamey code coverage
run: cd gamey && cargo llvm-cov --lcov --output-path lcov.info
- name: Normalize Rust coverage paths
run: |
sed -i "s|SF:${GITHUB_WORKSPACE}/|SF:|g" gamey/lcov.info
grep '^SF:' gamey/lcov.info | head
- name: Analyze with SonarQube
uses: SonarSource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}