diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md new file mode 100644 index 0000000..daa93c8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/custom.md @@ -0,0 +1,17 @@ +--- +name: Custom issue template +about: Describe this issue template's purpose here. +title: '' +labels: '' +assignees: '' + +--- + +## Purpose +Describe the purpose of this issue. + +## Task +- [ ] xxx + +## Output +Describe the expected output of this issue. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..3baeac2 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,3 @@ +## Modification + +## Related Issue diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..3740ffc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "10:00" + timezone: "Asia/Tokyo" + target-branch: "main" + groups: + main-dependencies: + patterns: + - "*" \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..2dd0daa --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: lint + +on: + push: + branches: + - '**' + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v4 + with: + go-version: 1.22 + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3.4.0 + with: + version: latest + args: --timeout=10m diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5f6971b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: test + +on: + push: + branches: + - '**' + +jobs: + test: + name: test + strategy: + fail-fast: false + max-parallel: 3 + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup Golang + uses: actions/setup-go@v2 + with: + go-version: 1.22 + - name: get dependencies + run: go get -v -t -d ./... + - name: test code + run: go test ./... \ No newline at end of file diff --git a/adapter.go b/adapter.go new file mode 100644 index 0000000..90a2298 --- /dev/null +++ b/adapter.go @@ -0,0 +1 @@ +package casbinbunadapter