Skip to content

not using dir after closing #7

not using dir after closing

not using dir after closing #7

Workflow file for this run

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"