Skip to content

Commit

Permalink
Merge branch 'release/1.6.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaRogue committed Dec 12, 2022
2 parents 4074b47 + ee4bcb7 commit 546bbd1
Show file tree
Hide file tree
Showing 38 changed files with 2,032 additions and 997 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ updates:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
target-branch: "develop"
28 changes: 23 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
on:
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -12,6 +11,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
Expand All @@ -25,6 +30,19 @@ jobs:
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test --configuration Release --no-build
run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
env:
TENOR_TEST_API_KEY: ${{ secrets.TENOR_TEST_API_KEY }}
TENOR_TEST_API_KEY: ${{ secrets.TENOR_TEST_API_KEY }}
- uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
name: test-results
path: TenorSharp.Tests/TestResults/test-results.trx
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: DotNet Tests # Name of the check run which will be created
path: TenorSharp.Tests/TestResults/test-results.trx # Path to test results
reporter: dotnet-trx # Format of test results

70 changes: 70 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changinghttps://github.com/OmegaRogue/TenorSharp; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '44 8 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
9 changes: 7 additions & 2 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
on:
name: Release Preview
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-[\w\d]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -15,6 +16,10 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
on:
name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+.?[0-9]*"
Expand All @@ -16,6 +17,10 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
Expand All @@ -35,7 +40,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test --configuration Release --no-build
run: dotnet test --configuration Release --no-build --logger "trx;LogFileName=test-results.trx"
- name: Pack
run: dotnet pack --configuration Release --no-build --output .
- name: Push GitHub
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Test Report'
on:
workflow_run:
workflows: ['Test'] # runs after CI workflow
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results # artifact name
name: DotNet Tests # Name of the check run which will be created
path: '*.trx' # Path to test results (inside artifact .zip)
reporter: dotnet-trx # Format of test results
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# TenorSharp
![Build Status](https://img.shields.io/github/workflow/status/OmegaRogue/TenorSharp/.NET%20Core)
![Build Status](https://img.shields.io/github/workflow/status/OmegaRogue/TenorSharp/Release)
![Preview Build Status](https://img.shields.io/github/workflow/status/OmegaRogue/TenorSharp/Release%20Preview)
![Test Status](https://img.shields.io/github/workflow/status/OmegaRogue/TenorSharp/Test)
[![GNU LGPL licensed](https://img.shields.io/github/license/OmegaRogue/TenorSharp)](COPYING.LESSER)
[![Nuget](https://img.shields.io/nuget/v/TenorSharp)](https://www.nuget.org/packages/TenorSharp/)
[![NuGt](https://img.shields.io/nuget/v/TenorSharp)](https://www.nuget.org/packages/TenorSharp/)
[![Discord](https://img.shields.io/discord/569206809693257728)](https://discord.gg/sWwzJeG)

TenorSharp is a C# Library for the [TenorAPI](https://tenor.com/gifapi). TenorSharp was made with dotNET 5.0 and 6.0

TenorSharp can be used to retrieve Content from Tenor without directly interfacing with the Tenor REST API.

# Looking for maintainers
I currently do not have the time and energy to properly maintain this by myself, any help would be greatly appreciated, especially with writing tests. You can contact me on the discord server, over matrix (linked in my GitHub profile), Email or Discussions on this Repo.

## Getting Started

For Development, fork and Clone this GitHub Repo.
Expand Down
Loading

0 comments on commit 546bbd1

Please sign in to comment.