File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 timeout-minutes : 60
1111 env :
12- RUSTFLAGS : -D warnings
12+ RUSTFLAGS : ${{ github.ref == 'refs/heads/main' && ' -D warnings' || '' }}
1313 steps :
1414 - name : Checkout repository
1515 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1313 types : [checks_requested]
1414
1515env :
16- RUSTFLAGS : -Dwarnings
16+ RUSTFLAGS : ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
1717
1818jobs :
1919 coverage :
2020 name : Coverage
2121 runs-on : ubuntu-latest
2222 timeout-minutes : 60
23+ if : github.ref == 'refs/heads/main'
2324 steps :
2425 - name : Checkout repository
2526 uses : actions/checkout@v4
@@ -151,7 +152,7 @@ jobs:
151152 runs-on : ubuntu-latest
152153 timeout-minutes : 60
153154 env :
154- RUSTDOCFLAGS : -D warnings
155+ RUSTDOCFLAGS : ${{ github.ref == 'refs/heads/main' && ' -D warnings' || '' }}
155156 steps :
156157 - name : Checkout repository
157158 uses : actions/checkout@v4
Original file line number Diff line number Diff line change 2929 timeout-minutes : 60
3030 env :
3131 WASM_PACK_PATH : ~/.cargo/bin/wasm-pack
32- RUSTFLAGS : -D warnings
32+ RUSTFLAGS : ${{ github.ref == 'refs/heads/main' && '-Dwarnings' || '' }}
3333 steps :
3434 - name : Checkout repository
3535 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments