Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test (if present)
run: |
set -e
dotnet test --no-build --verbosity normal || true

- name: Package release zip
run: |
mkdir -p release
dll_path="$(ls bin/Release/net6.0/*.dll 2>/dev/null | head -n 1)"
if [ -z "$dll_path" ]; then
echo "No built DLL found, skipping package creation"
exit 0
fi
zip_name="BlueLuck-${{ github.run_number }}.zip"
zip -j "release/$zip_name" "$dll_path" manifest.json LICENSE THIRD_PARTY_NOTICES.md README.md || true
echo "::set-output name=zip::release/$zip_name"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: BlueLuck-release
path: release/*.zip
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
Loading