Skip to content

Commit 08a852e

Browse files
committed
last version of v12
2 parents 55357a1 + 4117f3b commit 08a852e

File tree

1,579 files changed

+92879
-109111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,579 files changed

+92879
-109111
lines changed

.deepsource.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version = 1
2+
3+
test_patterns = ["**/*_test.go"]
4+
5+
exclude_patterns = [
6+
"_examples/**",
7+
"_benchmarks/**",
8+
".github/**"
9+
]
10+
11+
[[analyzers]]
12+
name = "go"
13+
enabled = true
14+
15+
[analyzers.meta]
16+
import_paths = ["github.com/kataras/iris/v12"]

.fossa.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
version: 2
1+
version: 3
22
cli:
33
server: https://app.fossa.com
4-
fetcher: custom
5-
project: https://github.com/kataras/iris.git
4+
fetcher: git
5+
package: github.com/kataras/iris
6+
project: github.com/kataras/iris
67
analyze:
78
modules:
89
- name: iris

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Examples for the Iris project can be found at
2-
<https://github.com/kataras/iris/tree/master/_examples>.
2+
<https://github.com/kataras/iris/tree/main/_examples>.
33

44
Documentation for the Iris project can be found at
5-
<https://godoc.org/github.com/kataras/iris>.
5+
<https://www.iris-go.com/docs>.
66

77
Love iris? Please consider supporting the project:
88
👉 https://iris-go.com/donate
99

1010
Care to be part of a larger community? Fill our user experience form:
11-
👉 https://goo.gl/forms/lnRbVgA6ICTkPyk02
11+
👉 https://goo.gl/forms/lnRbVgA6ICTkPyk02

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,16 @@ If applicable, add screenshots to help explain your problem.
2323
**Desktop (please complete the following information):**
2424
- OS: [e.g. ubuntu, windows]
2525

26+
**iris.Version**
27+
- e.g. v12.2.11
28+
29+
Please make sure the bug is reproducible over the `main` branch:
30+
31+
```sh
32+
$ cd PROJECT
33+
$ go get -u github.com/kataras/iris/v12@latest
34+
$ go run .
35+
```
36+
2637
**Additional context**
2738
Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# We'd love to see more contributions
22

3-
Read how you can [contribute to the project](https://github.com/kataras/iris/blob/master/CONTRIBUTING.md).
3+
Read how you can [contribute to the project](https://github.com/kataras/iris/blob/main/CONTRIBUTING.md).
44

5-
> Please attach an [issue](https://github.com/kataras/iris/issues) link which your PR solves otherwise your work may be rejected.
5+
> Please attach an [issue](https://github.com/kataras/iris/issues) link which your PR solves otherwise your work may be rejected.

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
for f in ../../_examples/*; do
4+
if [ -d "$f" ]; then
5+
# Will not run if no directories are available
6+
go mod init
7+
go get -u github.com/kataras/iris/v12@latest
8+
go mod download
9+
go run .
10+
fi
11+
done
12+
13+
# git update-index --chmod=+x ./.github/scripts/setup_examples_test.bash

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
14+
test:
15+
name: Test
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
go_version: [1.22.x]
21+
steps:
22+
23+
- name: Check out code into the Go module directory
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Go 1.x
27+
uses: actions/setup-go@v5
28+
with:
29+
go-version-file: './go.mod'
30+
check-latest: true
31+
- run: go version
32+
33+
- name: Test
34+
run: go test -v ./...
35+
36+
- name: Setup examples for testing
37+
run: ./.github/scripts/setup_examples_test.bash
38+
39+
- name: Test examples
40+
continue-on-error: true
41+
working-directory: _examples
42+
run: go test -v -mod=mod -cover -race ./...

.github/workflows/codeql-analysis.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '24 11 * * 6'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'go']
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: Set up Go 1.x
45+
uses: actions/setup-go@v5
46+
with:
47+
go-version-file: './go.mod'
48+
check-latest: true
49+
- run: go version
50+
51+
# Initializes the CodeQL tools for scanning.
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@v2
54+
with:
55+
languages: ${{ matrix.language }}
56+
# If you wish to specify custom queries, you can do so here or in a config file.
57+
# By default, queries listed here will override any specified in a config file.
58+
# Prefix the list here with "+" to use these queries and those in the config file.
59+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
60+
61+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62+
# If this step fails, then you should remove it and run the build manually (see below)
63+
- name: Autobuild
64+
uses: github/codeql-action/autobuild@v3
65+
66+
# ℹ️ Command-line programs to run using the OS shell.
67+
# 📚 https://git.io/JvXDl
68+
69+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
70+
# and modify them (or add more) to build your code if your project
71+
# uses a compiled language
72+
73+
#- run: |
74+
# make bootstrap
75+
# make release
76+
77+
- name: Perform CodeQL Analysis
78+
uses: github/codeql-action/analyze@v3

.github/workflows/go.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)