Skip to content

Workflow test

Workflow test #1

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install dependencies
run: go mod tidy
- name: Build
run: go build -o cook ./cmd/cook
- name: Test
run: go test -v ./... -cover
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag: ${{ github.ref }}
files: cook
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}