File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ jobs:
40
40
- name : Run cargo fmt
41
41
run : cargo fmt --all -- --check
42
42
43
- clippy :
44
- name : Clippy
43
+ code-analysis :
44
+ name : Code Analysis
45
45
runs-on : ubuntu-latest
46
46
container :
47
47
image : bilelmoussaoui/flatpak-github-actions:gnome-44
48
48
options : --privileged
49
+ needs : [check-commit-style, typos, rustfmt]
49
50
steps :
50
51
- uses : actions/checkout@v3
52
+ with :
53
+ fetch-depth : 0
51
54
52
55
- name : Cache flatpak
53
56
id : cache-flatpak
95
98
key : ${{ runner.os }}-target-${{ steps.rustc-version.outputs.RUSTC_VERSION }}-${{ hashFiles('Cargo.lock') }}
96
99
restore-keys : ${{ runner.os }}-target-${{ steps.rustc-version.outputs.RUSTC_VERSION }}
97
100
101
+ - name : Test if all commits build
102
+ run : |
103
+ for commit in $(git rev-list ${{ github.base_ref }}..${{ github.head_ref }}); do
104
+ git checkout $commit
105
+
106
+ flatpak-builder \
107
+ --run \
108
+ flatpak_app build-aux/com.github.marhkb.Pods.Devel.json \
109
+ cargo build
110
+ done
111
+
98
112
- name : Run clippy
99
113
run : |
100
114
flatpak-builder \
@@ -113,7 +127,7 @@ jobs:
113
127
arch : [x86_64]
114
128
# Don't fail the whole workflow if one architecture fails
115
129
fail-fast : false
116
- needs : [check-commit-style, typos, rustfmt, clippy ]
130
+ needs : [code-analysis ]
117
131
steps :
118
132
- uses : actions/checkout@v3
119
133
# Docker is required by the docker/setup-qemu-action which enables emulation
You can’t perform that action at this time.
0 commit comments