Skip to content

allow setting master password via environment variable #43

allow setting master password via environment variable

allow setting master password via environment variable #43

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: [ 'stable', 'oldstable' ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - go${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
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 -o gokey ./cmd/gokey
- name: Command line password is preferred to a password file
if: runner.os == 'Linux'
run: |
echo -n wrong > /tmp/pass
[ $(./gokey -p hunter2 -P /tmp/pass -r test) == 'X"fZba:0S>' ]