Skip to content

docs: correct image and badge #27

docs: correct image and badge

docs: correct image and badge #27

Workflow file for this run

on: [push, pull_request]
name: Test, Build and Publish
permissions:
contents: write
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run tests
run: go test -race ./...
goreleaser:
name: Build and Publish
needs: tests
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
check_brew:
name: Check Brew Tap
needs: goreleaser
runs-on: macos-latest
steps:
- name: Install with brew
run: |
brew install joshmedeski/sesh/sesh
- name: Check installed sesh version
run: |
[ v$(sesh --version) == "$GITHUB_REF_NAME" ]