zitadel-oidc/.github/workflows/release.yml
Florian Forster a842b13d25
chore: enhance CI process (#20)
* chore: enhance CI process

* chore: enhance ci

* chore: typo
2020-04-14 18:25:02 +02:00

33 lines
795 B
YAML

name: Release
on: push
jobs:
test:
runs-on: ubuntu-18.04
strategy:
matrix:
go: ['1.11', '1.12', '1.13', '1.14']
name: Go ${{ matrix.go }} test
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2-beta
with:
go-version: ${{ matrix.go }}
- run: go test -race -v -coverprofile=profile.cov ./pkg/...
- uses: codecov/codecov-action@v1
with:
file: ./profile.cov
name: codecov-go
release:
runs-on: ubuntu-18.04
needs: [test]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Source checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Create Version
uses: caos/semantic-release@v0.2.4