-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPS-0 migrate to Github Actions (#13)
* OPS-0 update Makefile * OPS-0 add CODEOWNERS * OPS-0 add release drafter * OPS-0 migrate to GHA * OPS-0 update CODEOWNERS
- Loading branch information
Showing
10 changed files
with
351 additions
and
117 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @Flaconi/devops @flaconi/platform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter | ||
name-template: 'v$NEXT_MINOR_VERSION 🌈' | ||
tag-template: 'v$NEXT_MINOR_VERSION' | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- feature | ||
- enhancement | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- fix | ||
- bugfix | ||
- bug | ||
- title: '🧰 Maintenance' | ||
labels: | ||
- chore | ||
- dependencies | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
branches: | ||
- master | ||
template: | | ||
## What's Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: lint | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
# Runs on Pull Requests | ||
pull_request: | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# What to run | ||
# ------------------------------------------------------------------------------------------------- | ||
jobs: | ||
lint: | ||
name: "Lint" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: False | ||
matrix: | ||
target: | ||
- lint | ||
- gen | ||
|
||
steps: | ||
# ------------------------------------------------------------ | ||
# Setup repository | ||
# ------------------------------------------------------------ | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# ------------------------------------------------------------ | ||
# Lint repository | ||
# ------------------------------------------------------------ | ||
- name: "make ${{ matrix.target }}" | ||
run: | | ||
retry() { | ||
for n in $(seq ${RETRIES}); do | ||
echo "[${n}/${RETRIES}] ${*}"; | ||
if eval "${*}"; then | ||
echo "[SUCC] ${n}/${RETRIES}"; | ||
return 0; | ||
fi; | ||
sleep 2; | ||
echo "[FAIL] ${n}/${RETRIES}"; | ||
done; | ||
return 1; | ||
} | ||
retry make "${TARGET}" | ||
git diff --quiet || { echo "Build Changes"; git diff; git status; false; } | ||
env: | ||
TARGET: ${{ matrix.target }} | ||
RETRIES: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
# branches to consider in the event; optional, defaults to all | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# Job Name | ||
# ------------------------------------------------------------------------------------------------- | ||
name: test | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# When to run | ||
# ------------------------------------------------------------------------------------------------- | ||
on: | ||
# Runs on Pull Requests | ||
pull_request: | ||
|
||
|
||
# ------------------------------------------------------------------------------------------------- | ||
# What to run | ||
# ------------------------------------------------------------------------------------------------- | ||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# ------------------------------------------------------------ | ||
# Checkout repository | ||
# ------------------------------------------------------------ | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Test | ||
run: | | ||
retry() { | ||
for n in $(seq ${RETRIES}); do | ||
echo "[${n}/${RETRIES}] ${*}"; | ||
if eval "${*}"; then | ||
echo "[SUCC] ${n}/${RETRIES}"; | ||
return 0; | ||
fi; | ||
sleep 2; | ||
echo "[FAIL] ${n}/${RETRIES}"; | ||
done; | ||
return 1; | ||
} | ||
retry make test | ||
env: | ||
RETRIES: 20 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.