Skip to content

chore: normalize line endings for CI #4

chore: normalize line endings for CI

chore: normalize line endings for CI #4

Workflow file for this run

name: ci
on:
push:
branches: [ main, master ]
pull_request:
jobs:
sim:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/sim
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
PYTHONPATH: .
run: pytest -q
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore src/api/FsoLinkLab.Api.csproj
- name: Build
run: dotnet build src/api/FsoLinkLab.Api.csproj --configuration Release --no-restore
- name: Test
run: dotnet test tests/api/FsoLinkLab.Api.Tests.csproj --configuration Release --no-build
ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/ui
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'src/ui/package-lock.json'
- name: Install
run: |
if [ -f package-lock.json ]; then npm ci; else npm install; fi
- name: Build
run: npm run build