Skip to content

Commit c285670

Browse files
Revert "Revert "chore(samples): mark samples novalidate (Kotlin#155)""
This reverts commit 9e39a14.
1 parent 0e2696f commit c285670

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/verify-samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: AlexanderPrendota/kotlin-samples-pusher@v1
1919
with:
2020
push-repository: 'https://github.com/AlexanderPrendota/kotlin-compiler-server'
21-
tag-filter: '#tag="code" & class="language-run-kotlin"'
21+
tag-filter: '#tag="code" & class="language-run-kotlin" & !validate="false"'
2222
push-path: 'src/test/resources/test-compile-data/jvm/kotlin-by-example'
2323
username: '${{ secrets.KOTLIN_BY_EXAMPLE_TOKEN }}' #token with an access to create PR in push-repository and issue in this repository
2424

examples/01_introduction/03_Variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fun main() {
2727
//sampleEnd
2828
}
2929
```
30+
{validate="false"}
3031

3132
1. Declares a variable without initialization.
3233
2. An attempt to use the variable causes a compiler error: `Variable 'e' must be initialized`.

examples/01_introduction/04_Null Safety.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fun main() {
2626
//sampleEnd
2727
}
2828
```
29+
{validate="false"}
2930

3031
1. Declares a non-`null` String variable.
3132
2. When trying to assign `null` to non-nullable variable, a compilation error is produced.

0 commit comments

Comments
 (0)