not using dir after closing #7
This file contains hidden or 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: Minishell CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: "true" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y make gcc libreadline-dev | |
| - name: Build project | |
| run: | | |
| make re | |
| - name: Run basic tests | |
| run: | | |
| ./minishell <<< "echo hello" | grep -q "hello" | |
| ./minishell <<< "pwd" | grep -q $(pwd) | |
| - name: Check for memory leaks (valgrind) | |
| if: ${{ !cancelled() }} | |
| run: | | |
| sudo apt-get install -y valgrind | |
| valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \ | |
| --error-exitcode=1 ./minishell <<< "exit" |