Skip to content

Move the gokey cmd main to an importable package #37

Move the gokey cmd main to an importable package

Move the gokey cmd main to an importable package #37

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- master
tags:
- v*
jobs:
test:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go: [ '1.13', '1.17', '>=1.18' ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - go${{ matrix.go }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Test gofmt
if: runner.os == 'Linux'
run: test -z "$(gofmt -l .)"
- name: Run go test
run: go test ./...
- name: Run go build
run: go build ./cmd/gokey