Skip to content
This repository was archived by the owner on May 16, 2024. It is now read-only.

Commit e876189

Browse files
committed
New repo, who this?
0 parents  commit e876189

129 files changed

Lines changed: 11099 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.cs]
2+
3+
# IDE0008: Use explicit type
4+
csharp_style_var_when_type_is_apparent =true:silent
5+
csharp_style_var_for_built_in_types=true:silent
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Delete Old Workflow Runs
2+
3+
on:
4+
schedule:
5+
# Run daily at 08:00
6+
- cron: '0 8 * * *'
7+
workflow_dispatch:
8+
inputs:
9+
retain_days:
10+
description: 'Days of workflow runs to keep'
11+
required: true
12+
default: '180'
13+
retain_runs:
14+
description: 'Minimum number of workflow runs to keep'
15+
required: true
16+
default: '10'
17+
18+
jobs:
19+
delete_old_workflow_runs:
20+
name: Delete Old Workflow Runs
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Set environment variables
24+
env:
25+
DEFAULT_RETAIN_DAYS: '180'
26+
DEFAULT_RETAIN_RUNS: '10'
27+
run: |
28+
echo "RETAIN_DAYS=${{ github.event.inputs.retain_days || env.DEFAULT_RETAIN_DAYS }}" >> $GITHUB_ENV
29+
echo "RETAIN_RUNS=${{ github.event.inputs.retain_runs || env.DEFAULT_RETAIN_RUNS }}" >> $GITHUB_ENV
30+
- name: Delete workflow runs older than ${{ env.RETAIN_DAYS }} days, keeping ${{ env.RETAIN_RUNS }} runs
31+
uses: Mattraks/delete-workflow-runs@v1.2.3
32+
with:
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
repository: ${{ github.repository }}
35+
retain_days: ${{ env.RETAIN_DAYS }}
36+
keep_minimum_runs: ${{ env.RETAIN_RUNS }}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI build/test develop
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v1
20+
with:
21+
dotnet-version: 6.0.x
22+
23+
- name: Restore dependencies
24+
run: dotnet restore CodeCaster.PVBridge.NoUI.sln
25+
26+
- name: Build
27+
run: dotnet build CodeCaster.PVBridge.NoUI.sln --no-restore
28+
29+
- name: Test
30+
run: dotnet test CodeCaster.PVBridge.NoUI.sln --no-build --verbosity normal

0 commit comments

Comments
 (0)