Skip to content

Commit 3ac78a2

Browse files
committed
ci: Add .github workflows
1 parent 368abe5 commit 3ac78a2

File tree

7 files changed

+123
-1
lines changed

7 files changed

+123
-1
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tooling Team
2+
* @Vonage/server-sdk
3+
* @SMadani

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Request/Response**
27+
If applicable, please provide the request used and the response
28+
29+
**Java Version**
30+
- Version:
31+
32+
**Kotlin Version**
33+
- Version:
34+
35+
**Kotlin SDK Version**
36+
- Version:
37+
38+
**Additional context/ Error Log**
39+
Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_Describe your changes here_
2+
3+
## Contribution Checklist
4+
* [ ] Unit tests!
5+
* [ ] Updated [CHANGELOG.md](CHANGELOG.md)
6+
* [ ] My name is in [CONTRIBUTORS.md](CONTRIBUTORS.md)

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
permissions: read-all
9+
10+
jobs:
11+
build:
12+
permissions:
13+
contents: read
14+
checks: write
15+
statuses: write
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: true
19+
matrix:
20+
java: [8, 11, 17, 21]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
steps:
23+
- name: Checkout the repo
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
25+
- name: Setup Java
26+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12
27+
with:
28+
distribution: 'temurin'
29+
java-version: ${{ matrix.java }}
30+
- name: Compile with Gradle
31+
run: ./gradlew build

.github/workflows/codeql.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "CodeQL"
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
branches: [ "main" ]
7+
schedule:
8+
- cron: '35 2 * * 2'
9+
10+
permissions: read-all
11+
12+
jobs:
13+
analyze:
14+
name: Analyze (${{ matrix.language }})
15+
runs-on: 'ubuntu-latest'
16+
permissions:
17+
security-events: write
18+
packages: read
19+
actions: read
20+
contents: read
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
include:
26+
- language: java-kotlin
27+
build-mode: autobuild
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a
33+
with:
34+
languages: ${{ matrix.language }}
35+
build-mode: ${{ matrix.build-mode }}
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a
38+
with:
39+
category: "/language:${{matrix.language}}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Vonage Quickstart Examples for Kotlin
22

3+
![SLOC](https://sloc.xyz/github/Vonage/vonage-kotlin-code-snippets)
34
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
45
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
56
[![Community Slack](https://img.shields.io/badge/Slack-4A154B?style=flat&logo=slack&logoColor=white)](https://developer.vonage.com/community/slack)
@@ -33,7 +34,6 @@ Most APIs will require you to [create an application](https://dashboard.nexmo.co
3334
2. To work with a different / specific version of the SDK or any dependencies, edit the `build.gradle.kts` file.
3435
4. Copy `.env-example` to `.env` and edit the values. The [EnvironmentVariables.kt](src/main/kotlin/com/vonage/quickstart/kt/EnvironmentVariables.kt) file is where they're loaded.
3536
5. Use your IDE to run the examples you are interested in.
36-
You will need to point the run configuration to use the `.env` file as an environment variable.
3737

3838
## Searchable Examples
3939
See [SNIPPETS.md](SNIPPETS.md) for an aggregated list of all the code in this repository. You can then

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
// This is a workaround for the required property in com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
3+
project.setProperty("mainClassName", "AggregateSnippetsKt")
4+
15
plugins {
26
kotlin("jvm") version "2.1.+"
37
id("io.ktor.plugin") version "3.0.+"

0 commit comments

Comments
 (0)