fix: rename module to support go install #195
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docker-compose-test | |
on: pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: render-checksec | |
run: | | |
pip install pre-commit | |
mkdir ${HOME}/bin | |
curl -Lo ${HOME}/bin/shfmt https://github.com/mvdan/sh/releases/download/v3.8.0/shfmt_v3.8.0_linux_amd64 | |
chmod +x ${HOME}/bin/shfmt | |
export PATH=${PATH}:${HOME}/bin | |
pre-commit run --all-files | |
git status | |
if [[ ! -z $(git status --porcelain) ]]; then | |
echo "source file differs, checksec needs build" | |
exit 1 | |
fi | |
- name: Checksec tests | |
run: | | |
docker build -t checksec:test -f Dockerfile.ubuntu . | |
docker run -t checksec:test tests/test-checksec.sh |