Skip to content

Commit

Permalink
Merge pull request #4 from JunNishimura/feature/add_github_actions
Browse files Browse the repository at this point in the history
add github actions
  • Loading branch information
JunNishimura committed Mar 23, 2024
2 parents 04c2a06 + b9c5da5 commit 037d3ab
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Modification

## Related Issue
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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:
- "*"
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
1 change: 1 addition & 0 deletions adapter.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package casbinbunadapter

0 comments on commit 037d3ab

Please sign in to comment.