Skip to content

Commit 37c005c

Browse files
committed
Add a workflow that verifies a freshly released version for basic functioning
1 parent e5226c2 commit 37c005c

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/usr/bin/env kotlin
2+
3+
/*
4+
* Copyright 2020-2025 Björn Kautler
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
@file:Import("workflow-with-copyright.main.kts")
20+
@file:Repository("https://bindings.krzeminski.it/")
21+
@file:DependsOn("Vampire:setup-wsl:RELEASE")
22+
23+
import io.github.typesafegithub.workflows.actions.vampire.SetupWsl
24+
import io.github.typesafegithub.workflows.domain.RunnerType.WindowsLatest
25+
import io.github.typesafegithub.workflows.domain.triggers.Push
26+
import io.github.typesafegithub.workflows.domain.triggers.WorkflowDispatch
27+
28+
workflowWithCopyright(
29+
name = "Verify Release",
30+
on = listOf(
31+
Push(tags = listOf("v*")),
32+
WorkflowDispatch()
33+
),
34+
sourceFile = __FILE__
35+
) {
36+
job(
37+
id = "verify_release",
38+
name = "Verify Release",
39+
runsOn = WindowsLatest
40+
) {
41+
uses(
42+
name = "Check for Modifications",
43+
action = SetupWsl()
44+
)
45+
}
46+
}

.github/workflows/verify-release.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright 2020-2025 Björn Kautler
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This file was generated using Kotlin DSL (.github/workflows/verify-release.main.kts).
16+
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
17+
# Generated with https://github.com/typesafegithub/github-workflows-kt
18+
19+
name: 'Verify Release'
20+
on:
21+
push:
22+
tags:
23+
- 'v*'
24+
workflow_dispatch: {}
25+
jobs:
26+
check_yaml_consistency:
27+
name: 'Check YAML consistency'
28+
runs-on: 'ubuntu-latest'
29+
steps:
30+
- id: 'step-0'
31+
name: 'Check out'
32+
uses: 'actions/checkout@v4'
33+
- id: 'step-1'
34+
name: 'Execute script'
35+
run: 'rm ''.github/workflows/verify-release.yaml'' && ''.github/workflows/verify-release.main.kts'''
36+
- id: 'step-2'
37+
name: 'Consistency check'
38+
run: 'git diff --exit-code ''.github/workflows/verify-release.yaml'''
39+
verify_release:
40+
name: 'Verify Release'
41+
runs-on: 'windows-latest'
42+
needs:
43+
- 'check_yaml_consistency'
44+
steps:
45+
- id: 'step-0'
46+
name: 'Check for Modifications'
47+
uses: 'Vampire/setup-wsl@v4'

0 commit comments

Comments
 (0)