mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Shellcheck and Hadolint
|
|
run: make lint
|
|
|
|
docker-ci:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
docker-env:
|
|
- debian-gnupg1 # We need to test legacy version of gnupg
|
|
- debian-gnupg2
|
|
- ubuntu
|
|
- alpine
|
|
- fedora
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run checks
|
|
run: SECRETS_DOCKER_ENV="${{ matrix.docker-env }}" make docker-ci
|
|
|
|
osx-ci:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run checks
|
|
run: brew install gawk gnupg && make test
|
|
|
|
build-man:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Checks that manual generation works
|
|
run: make build-man
|