You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-secret/.github/workflows/test.yml

57 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 }}-test
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Shellcheck and Hadolint
run: make lint
docker-ci:
runs-on: ubuntu-latest
strategy:
matrix:
docker-env:
- alma
- alpine
- arch
- debian-gnupg1 # We need to test legacy version of gnupg
- debian-gnupg2
- fedora
- rocky
- ubuntu
steps:
- uses: actions/checkout@v3
- name: Run checks
run: SECRETS_DOCKER_ENV="${{ matrix.docker-env }}" make docker-ci
osx-ci:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run checks
run: brew install gawk gnupg && make test
osx-ci-verbose-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run checks
run: brew install gawk gnupg && SECRETS_TEST_VERBOSE=1 make test