2021-05-03 10:56:51 +00:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-03 11:06:58 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-05-03 10:56:51 +00:00
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2021-05-03 13:18:15 +00:00
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install shellcheck
|
|
|
|
run: sudo apt-get update && sudo apt-get install -y shellcheck make
|
|
|
|
- name: Run lint
|
|
|
|
run: make lint
|
|
|
|
|
2021-05-03 12:43:04 +00:00
|
|
|
docker-ci:
|
2021-05-03 10:56:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
docker-based-test:
|
2021-05-03 14:23:54 +00:00
|
|
|
- debian-gnupg1 # We need to test legacy version of gnupg
|
|
|
|
- debian-gnupg2
|
2021-05-03 11:10:39 +00:00
|
|
|
- ubuntu
|
2021-05-03 11:43:32 +00:00
|
|
|
- alpine
|
2021-05-03 12:43:04 +00:00
|
|
|
- fedora
|
2021-05-03 12:51:55 +00:00
|
|
|
- centos
|
2021-05-03 14:23:54 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run checks
|
|
|
|
run: GITSECRET_DOCKER_ENV="${{ matrix.docker-based-test }}" make docker-ci
|
2021-05-03 10:56:51 +00:00
|
|
|
|
2021-05-03 14:23:54 +00:00
|
|
|
osx-ci:
|
|
|
|
runs-on: macos-latest
|
2021-05-03 10:56:51 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Run checks
|
2021-05-03 14:23:54 +00:00
|
|
|
run: brew install gawk gnupg && make test
|
2021-05-03 11:04:02 +00:00
|
|
|
|
2021-05-03 13:18:15 +00:00
|
|
|
build-man:
|
2021-05-03 11:04:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-03 13:18:15 +00:00
|
|
|
- name: Checks that manual generation works
|
|
|
|
run: make build-man
|