Skip to content

Commit

Permalink
Setup go in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScorpion committed May 18, 2023
1 parent 0338d2d commit ffdffa0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ on:

jobs:
build:
runs-on: golang:1.20-alpine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- run: test -z $(gofmt -l .)
- run: go build ./cmd/gokart.go
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:

jobs:
build:
runs-on: golang:1.20-alpine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- run: go build ./cmd/gokart.go
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

**Blazing fast and slick shell prompt, written in Go**

[![Build](https://github.com/LucaScorpion/gokart-prompt/actions/workflows/build.yml/badge.svg)](https://github.com/LucaScorpion/gokart-prompt/actions/workflows/build.yml)

## Installation 🚀

<details>
Expand Down

0 comments on commit ffdffa0

Please sign in to comment.