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 12:43:04 +00:00
|
|
|
docker-ci:
|
2021-05-03 10:56:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
docker-based-test:
|
|
|
|
- debian
|
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 10:56:51 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run checks
|
|
|
|
run: GITSECRET_DOCKER_ENV="${{ matrix.docker-based-test }}" make ci
|
2021-05-03 11:04:02 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install shellcheck
|
2021-05-03 11:06:58 +00:00
|
|
|
run: sudo apt-get update && sudo apt-get install -y shellcheck make
|
2021-05-03 11:04:02 +00:00
|
|
|
|
|
|
|
- name: Run lint
|
|
|
|
run: make lint
|