Bump unzip-stream from 0.3.1 to 0.3.4 in /frontend #229
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: Backend Code Style | |
on: | |
push: | |
jobs: | |
backend-style: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: 📥 Checkout repository | |
uses: actions/[email protected] | |
- name: ✍ Check hlint and stylish | |
run: | | |
curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s . | |
curl -sSL https://raw.github.com/cad0p/uu-afp-2021-assign2/master/scripts/stylish-haskell.sh | sh -s $(find . -type f -name "*.hs" ! -path "*.stack-work*") -i | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "No style errors detected." | |
else | |
echo "Style errors detected:" | |
git --no-pager diff | |
exit 1 | |
fi | |
# https://stackoverflow.com/questions/57806624/github-actions-how-to-build-project-in-sub-directory | |
working-directory: backend |