mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
name: ASF-ci
|
|
|
|
on: [push, pull_request]
|
|
|
|
env:
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_SDK_VERSION: 6.0.x
|
|
|
|
jobs:
|
|
main:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
configuration: [Debug, Release]
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3.0.2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v2.1.0
|
|
with:
|
|
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
|
|
|
- name: Verify .NET Core
|
|
run: dotnet --info
|
|
|
|
- name: Build ${{ matrix.configuration }} ArchiSteamFarm and other projects
|
|
run: dotnet build -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
|
|
|
- name: Run ${{ matrix.configuration }} ArchiSteamFarm.Tests
|
|
run: dotnet test ArchiSteamFarm.Tests -c "${{ matrix.configuration }}" -p:ContinuousIntegrationBuild=true -p:UseAppHost=false --nologo
|
|
|
|
- name: Upload latest strings for translation on Crowdin
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && matrix.configuration == 'Release' && startsWith(matrix.os, 'ubuntu-') }}
|
|
uses: crowdin/github-action@1.4.11
|
|
with:
|
|
crowdin_branch_name: main
|
|
config: '.github/crowdin.yml'
|
|
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
|
|
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
|