Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Commit d52ecc8

Browse files
authored
feat(workfloe): script to verify samples (#138)
1 parent 1d5dfd0 commit d52ecc8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

workflows/verify-samples.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Verify samples
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Set up JDK
13+
uses: actions/setup-java@v2
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
- name: Run a verifier
18+
uses: AlexanderPrendota/kotlin-samples-pusher@v1
19+
with:
20+
push-repository: 'https://github.com/kotlin-hands-on/hands-on'
21+
tag-filter: '#tag="code" & class="language-run-kotlin"'
22+
push-path: 'src/test/resources/test-compile-data/jvm/kotlin-hands-on'
23+
username: '${{ secrets.KOTLIN_HANDS_ON_TOKEN }}' #token with an access to create PR in push-repository and issue in this repository
24+
25+

0 commit comments

Comments
 (0)