File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ jobs:
4040 - name : Run cargo fmt
4141 run : cargo fmt --all -- --check
4242
43- clippy :
44- name : Clippy
43+ code-analysis :
44+ name : Code Analysis
4545 runs-on : ubuntu-latest
4646 container :
4747 image : bilelmoussaoui/flatpak-github-actions:gnome-44
4848 options : --privileged
49+ needs : [check-commit-style, typos, rustfmt]
4950 steps :
5051 - uses : actions/checkout@v3
52+ with :
53+ fetch-depth : 0
5154
5255 - name : Cache flatpak
5356 id : cache-flatpak
9598 key : ${{ runner.os }}-target-${{ steps.rustc-version.outputs.RUSTC_VERSION }}-${{ hashFiles('Cargo.lock') }}
9699 restore-keys : ${{ runner.os }}-target-${{ steps.rustc-version.outputs.RUSTC_VERSION }}
97100
101+ - name : Test if all commits build
102+ run : |
103+ git config --global --add safe.directory /__w/pods/pods
104+
105+ for commit in $(git rev-list ${{ github.base_ref }}..${{ github.head_ref }}); do
106+ git checkout $commit
107+
108+ flatpak-builder \
109+ --run \
110+ flatpak_app build-aux/com.github.marhkb.Pods.Devel.json \
111+ cargo build
112+ done
113+
98114 - name : Run clippy
99115 run : |
100116 flatpak-builder \
@@ -113,7 +129,7 @@ jobs:
113129 arch : [x86_64]
114130 # Don't fail the whole workflow if one architecture fails
115131 fail-fast : false
116- needs : [check-commit-style, typos, rustfmt, clippy ]
132+ needs : [code-analysis ]
117133 steps :
118134 - uses : actions/checkout@v3
119135 # Docker is required by the docker/setup-qemu-action which enables emulation
You can’t perform that action at this time.
0 commit comments