Skip to content

Read prompt from file (#6) #3

Read prompt from file (#6)

Read prompt from file (#6) #3

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
uses: actions/cache@v2
id: go-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- if: steps.go-cache.outputs.cache-hit != 'true'
run: go mod download
- name: Test
run: make test
- if: ${{ success() }}
name: Build
run: make build
- if: ${{ success() }}
name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: bin