-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.34 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Run Linter 🧐
shell: bash
run: make lint
- name: Configure git 🔧
run: |
git config --global url."https://${{ secrets.KIVRABOT }}@github.com/kivra/".insteadOf "[email protected]:kivra/"
git config --global url."https://${{ secrets.KIVRABOT }}@github.com/kivra".insteadOf "https://github.com/kivra"
- name: Run Erlang Tests 🏃🏾
shell: bash
run: make test-erl
- name: Run Go Tests 🏃🏽♀️
shell: bash
run: make test-go
- name: Run python Tests 🏃🏾
shell: bash
run: make test-python
release:
if: github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'no-release:') == false
needs: build
runs-on: ubuntu-latest
steps:
- name: Bump version and push tag
id: tag_version
uses: kivra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}