Skip to content

Run CI on self-hosted runners (#8) #24

Run CI on self-hosted runners (#8)

Run CI on self-hosted runners (#8) #24

Workflow file for this run

name: Build & Test
on:
push:
branches: ['*']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: self-hosted
container:
image: quantconnect/lean:foundation
options: --cpus 12 --memory 12g
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Lean Same Branch
id: lean-same-branch
uses: actions/checkout@v2
continue-on-error: true
with:
ref: ${{ github.ref }}
repository: QuantConnect/Lean
path: Lean
- name: Checkout Lean Master
if: steps.lean-same-branch.outcome != 'success'
uses: actions/checkout@v2
with:
repository: QuantConnect/Lean
path: Lean
- name: Move Lean
run: mv Lean ../Lean
- name: Run build and tests
run: |
# Build
dotnet build /p:Configuration=Release /v:quiet /p:WarningLevel=1 QuantConnect.DataSource.FactSet.sln
# Run Tests
dotnet test ./QuantConnect.FactSet.Tests/bin/Release/net9.0/QuantConnect.DataLibrary.Tests.dll