diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 54eda5c..3c92a9e 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -13,8 +13,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Build - run: cargo build - - name: Test + - name: Checkout repository with submodules + uses: actions/checkout@v4 + with: + submodules: true + + - name: Build (release) + run: cargo build --release + + - name: Unit tests run: cargo test + + - name: Integration tests + run: ./tests/writing-a-c-compiler-tests/test_compiler ./target/release/mcc --chapter 8 +