Skip to content

Commit

Permalink
Create testing.yaml (#48)
Browse files Browse the repository at this point in the history
* Create testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Create release.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml

* Update testing.yaml
  • Loading branch information
fenix-hub authored Dec 21, 2023
1 parent 76a602f commit 4e8cef3
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Godot Engine JWT - Release

on:
push:
branches:
- "main-godot4"

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
34 changes: 34 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Godot Engine JWT - Testing

on: [pull_request]

jobs:
test:
name: Execute Testsuite
runs-on: ubuntu-latest
outputs:
table: ${{ steps.test-library.outputs.table }}
failures: ${{ steps.test-library.outputs.failures }}
passed: ${{ steps.test-library.outputs.passed }}
steps:
- name: Test library
id: test-library
uses: fenix-hub/gd-jwt-testing@main

comment-pr:
if: always()
name: Add Report
needs: test
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
message: |
Summary:
${{ needs.test.outputs.table }}
Failures:
${{ needs.test.outputs.failures }}

0 comments on commit 4e8cef3

Please sign in to comment.