Skip to content

Commit 18ea793

Browse files
committed
chore: Avoid to run tests and linter with stable and beta for nightly branches
That branches potentially use features that are not in stable or beta yet
1 parent d91703f commit 18ea793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
rust: [ stable, beta ]
3434
runs-on: ${{ matrix.os }}
3535
timeout-minutes: 5
36-
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch'
36+
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly')
3737
steps:
3838
- uses: actions/checkout@v2
3939
- uses: actions-rs/toolchain@v1
@@ -49,7 +49,7 @@ jobs:
4949
lint:
5050
runs-on: ubuntu-latest
5151
timeout-minutes: 5
52-
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !contains(github.ref, 'refs/tags/v')
52+
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !contains(github.ref, 'refs/tags/v')
5353
steps:
5454
- uses: actions/checkout@v2
5555
- uses: actions-rs/toolchain@v1

0 commit comments

Comments
 (0)