git-secret/.github/workflows/test.yml

51 lines
1011 B
YAML
Raw Normal View History

2021-05-03 10:56:51 +00:00
name: test
on:
push:
2021-05-03 11:06:58 +00:00
branches:
- master
2021-05-19 07:46:35 +00:00
paths-ignore:
- 'docs/**'
2021-05-03 10:56:51 +00:00
pull_request:
2021-05-19 07:46:35 +00:00
paths-ignore:
- 'docs/**'
2021-05-03 10:56:51 +00:00
workflow_dispatch:
jobs:
2021-05-03 13:18:15 +00:00
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-05-03 16:21:33 +00:00
- name: Shellcheck and Hadolint
2021-05-03 13:18:15 +00:00
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-env:
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: SECRETS_DOCKER_ENV="${{ matrix.docker-env }}" 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