Skip to content

Commit

Permalink
Merge pull request #3 from ch-braun/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ch-braun authored Nov 7, 2024
2 parents e699d11 + 5cffc85 commit 635aa93
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on:
workflow_call:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'

- name: Test
run: go test -v ./...
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

on: [ push ]

jobs:
run-test:
uses: ./.github/workflows/_test.yml

build:
runs-on: ubuntu-latest
needs: run-test

strategy:
matrix:
goos: [ linux ]
goarch: [ amd64, arm64 ]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'

- name: Build
run: |
mkdir -p dist
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o dist/go-jwt-kc-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: go-jwt-kc-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/
2 changes: 1 addition & 1 deletion go-jwt-kc.plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
)

const PluginVersion = "0.1"
const PluginVersion = "0.0.1"

var PluginPriority = 1005

Expand Down

0 comments on commit 635aa93

Please sign in to comment.