zitadel-oidc/.github/workflows/release.yml
Florian Forster 30f60da90d
chore: use only go mod native version (#52)
* chore: use only go mod native version

* chore: new go versions

* update go version in go.mod

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2020-09-10 15:53:17 +02:00

37 lines
919 B
YAML

name: Release
on: push
jobs:
test:
runs-on: ubuntu-18.04
strategy:
matrix:
go: ['1.14', '1.15']
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: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
dry_run: false
semantic_version: 17.0.4
extra_plugins: |
@semantic-release/exec@5.0.0