Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Only enqueue non-terminal tasks (#164) #82

Only enqueue non-terminal tasks (#164)

Only enqueue non-terminal tasks (#164) #82

Workflow file for this run

name: Master
on:
push:
branches:
- master
jobs:
bump-version:
name: Bump Version
if: github.event.commits[0].author.name != 'goreleaserbot'
runs-on: ubuntu-latest
outputs:
version: ${{ steps.bump-version.outputs.tag }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Bump version and push tag
id: bump-version
uses: flyteorg/github-tag-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
goreleaser:
name: Goreleaser
runs-on: ubuntu-latest
needs: [ bump-version ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tests-lint:
name: Run tests and lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Unit Tests
run: make mod_download && make test_unit_codecov
- name: Push CodeCov
uses: codecov/codecov-action@v3.1.1
with:
file: coverage.txt
flags: unittests
fail_ci_if_error: false
- uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Lint
run: make install && make lint
- name: Bench tests
run: make install && make test_benchmark