Skip to content

Commit 6785dde

Browse files
committed
Bump version in typingSpec validation
1 parent 144f38e commit 6785dde

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
and such `action-types.yml` next to it:
3535

3636
```yaml
37-
typingSpec: krzema12/github-actions-typing@v0.1
37+
typingSpec: krzema12/github-actions-typing@v0.3
3838
inputs:
3939
verbose:
4040
type: boolean
@@ -50,7 +50,7 @@ This action, once used within a workflow, will fail the workflow run and produce
5050

5151
Create a new file in your action repo's root directory: `action-types.yml`, then:
5252

53-
- add top-level attribute: `typingSpec: krzema12/github-actions-typing@v0.1`. Thanks to this, you as the actions' author
53+
- add top-level attribute: `typingSpec: krzema12/github-actions-typing@v0.3`. Thanks to this, you as the actions' author
5454
state which kind of typings your actions adheres to. At the time of writing this, no standard has emerged yet. This
5555
attribute is there to be able to tell the specs apart in the future, for example if GitHub publishes a first-party way
5656
to specify types.
@@ -195,4 +195,4 @@ inputs:
195195
- admin
196196
- guest
197197
...
198-
```
198+
```

action-types.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
typingSpec: krzema12/github-actions-typing@v0.1
1+
typingSpec: krzema12/github-actions-typing@v0.3
22
inputs:
33
verbose:
44
type: boolean

src/main/kotlin/it/krzeminski/githubactionstyping/validation/ManifestValidation.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import it.krzeminski.githubactionstyping.validation.types.validateInteger
99
import it.krzeminski.githubactionstyping.validation.types.validateList
1010
import it.krzeminski.githubactionstyping.validation.types.validateString
1111

12-
const val expectedTypingSpec = "krzema12/github-actions-typing@v0.1"
12+
const val expectedTypingSpec = "krzema12/github-actions-typing@v0.3"
1313

1414
fun TypesManifest.validate(): ActionValidationResult {
1515
if (this.typingSpec == null || this.typingSpec != expectedTypingSpec) {

src/test/kotlin/it/krzeminski/githubactionstyping/validation/ManifestValidationTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class ManifestValidationTest : FunSpec({
125125
// then
126126
result shouldBe ActionValidationResult(
127127
overallResult = ItemValidationResult.Invalid(
128-
"Set top-level 'typingSpec' attribute to 'krzema12/github-actions-typing@v0.1', was: null"
128+
"Set top-level 'typingSpec' attribute to 'krzema12/github-actions-typing@v0.3', was: null"
129129
),
130130
inputs = emptyMap(),
131131
outputs = emptyMap(),
@@ -146,7 +146,7 @@ class ManifestValidationTest : FunSpec({
146146
// then
147147
result shouldBe ActionValidationResult(
148148
overallResult = ItemValidationResult.Invalid(
149-
"Set top-level 'typingSpec' attribute to 'krzema12/github-actions-typing@v0.1', " +
149+
"Set top-level 'typingSpec' attribute to 'krzema12/github-actions-typing@v0.3', " +
150150
"was: 'incorrect-typing-spec'"
151151
),
152152
inputs = emptyMap(),

0 commit comments

Comments
 (0)