Skip to content

Commit

Permalink
Merge cd81b39 into 1cd6da1
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Dec 28, 2020
2 parents 1cd6da1 + cd81b39 commit 785bbc2
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template: |
## What’s Changed
$CHANGES
16 changes: 9 additions & 7 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ name: CI build
on: [push, pull_request]
jobs:
build:
name: Build sources
name: 🔨 Build sources
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: 📤 Checkout the repository
uses: actions/checkout@main

- uses: actions/setup-dotnet@v1
- name: 🥅 Install .Net 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100' # SDK Version

- name: Enable problem matchers
- name: 🔍 Enable problem matchers
run: echo "::add-matcher::.github/matchers/dotnet.json"

- name: Build code
- name: 🛠️ Build code
run: dotnet build

- name: Test code
- name: 👀 Test code
run: dotnet test -v minimal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=${{github.workspace}}/codecover/lcov.info

- name: Publish coverage report to coveralls.io
- name: 📨 Publish coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/push_docker_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,24 @@ jobs:
name: Deploy to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: "Set version number"
- name: 📤 Checkout the repository
uses: actions/checkout@main
- name: 📆 Set version number
run: |
sed -i '/ private const string Version = /c\ private const string Version = "dev build";' ${{github.workspace}}/src/DaemonRunner/DaemonRunner/Service/RunnerService.cs
-
name: Set up QEMU
name: 📎 Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
name: 🔧 Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
-
name: Available platforms
name: 🧰 Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Login to docker hub
- name: 🔓 Login to docker hub
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
- name: Run Buildx
- name: 🛠️ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 📝 Release Drafter

on:
push:
branches:
- main
- dev
- '*'
pull_request:
branches:
- '*'

jobs:
update:
name: ⏫ Update
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: ⏭️ Get next version
id: version
run: |
declare -i newpost
latest=$(git describe --tags $(git rev-list --tags --max-count=1))
latestpre=$(echo "$latest" | awk '{split($0,a,"."); print a[1] "." a[2]}')
datepre=$(date --utc '+%y.%W')
if [[ "$latestpre" == "$datepre" ]]; then
latestpost=$(echo "$latest" | awk '{split($0,a,"."); print a[3]}')
newpost=$latestpost+1
else
newpost=0
fi
echo Current version: $latest
echo New target version: $datepre.$newpost
echo "::set-output name=version::$datepre.$newpost"
- name: 🏃 Run Release Drafter
uses: release-drafter/release-drafter@v5
with:
tag: ${{ steps.version.outputs.version }}
name: ${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 785bbc2

Please sign in to comment.