mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: ASF-ci
|
|
|
|
on: [push, pull_request]
|
|
|
|
env:
|
|
CONFIGURATION: Release
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
|
DOTNET_NOLOGO: 1
|
|
DOTNET_SDK_VERSION: 5.0.x
|
|
|
|
jobs:
|
|
main:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2.3.4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v1.8.1
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
|
|
|
- name: Verify .NET Core
|
|
run: dotnet --info
|
|
|
|
- name: Build ArchiSteamFarm and other projects
|
|
run: dotnet build -c "${{ env.CONFIGURATION }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
|
|
|
- name: Run ArchiSteamFarm.Tests
|
|
run: dotnet test ArchiSteamFarm.Tests -c "${{ env.CONFIGURATION }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
|
|
|
- name: Upload latest strings for translation on Crowdin
|
|
continue-on-error: true
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
|
|
uses: crowdin/github-action@1.1.2
|
|
with:
|
|
crowdin_branch_name: main
|
|
config: '.github/crowdin.yml'
|
|
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
|
|
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
|