Skip to content

Commit b979c12

Browse files
authored
feat: add the code of casdoor-forward-auth
1 parent 7c0a4cf commit b979c12

19 files changed

Lines changed: 1466 additions & 1 deletion

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
13+
test:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v4
23+
with:
24+
go-version: '1.23.0'
25+
26+
- name: Run Unit tests
27+
run: go test -v ./...
28+
29+
semantic-release:
30+
needs: [test]
31+
runs-on: ubuntu-latest
32+
permissions:
33+
contents: write
34+
issues: write
35+
pull-requests: write
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Run semantic-release
40+
if: github.repository == 'casdoor/casdoor-forward-auth' && github.event_name == 'push'
41+
run: |
42+
npm install --save-dev semantic-release@17.2.4
43+
npx semantic-release
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ go.work.sum
3030
# Editor/IDE
3131
# .idea/
3232
# .vscode/
33+
34+
# Build output
35+
bin/
36+
dist/

.releaserc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"debug": true,
3+
"branches": [
4+
"+([0-9])?(.{+([0-9]),x}).x",
5+
"master",
6+
{
7+
"name": "beta",
8+
"prerelease": true
9+
}
10+
],
11+
"plugins": [
12+
"@semantic-release/commit-analyzer",
13+
"@semantic-release/release-notes-generator",
14+
"@semantic-release/github"
15+
]
16+
}

0 commit comments

Comments
 (0)