Skip to content

Added tests in github workflows and updated makefile #44

Added tests in github workflows and updated makefile

Added tests in github workflows and updated makefile #44

Workflow file for this run

name: Build and Release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:

Check failure on line 12 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
run: |
VERSION=$(grep '^VERSION=' Makefile | awk -F= '{print $2}')
echo "::set-output name=CURRENT_VERSION::$VERSION"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: make
- name: Create Release
# Only create a release on push to the main branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: softprops/[email protected]
with:
name: Release v${{ steps.get-version.outputs.CURRENT_VERSION }}
tag_name: v${{ steps.get-version.outputs.CURRENT_VERSION }}
draft: true
prerelease: true