diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..45af77c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,19 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "gomod" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "daily" + assignees: + - "iyear" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + assignees: + - "iyear" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9c90c4b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI + +on: + workflow_dispatch: + pull_request: + push: + branches: [ master ] + paths: + - '**.go' + - 'go.mod' + - 'go.sum' + - '.github/workflows/*.yml' + +permissions: + contents: read + pull-requests: read + +jobs: + lint: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Golang env + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + cache: false # conflict with golangci-lint cache + - name: lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.54 + build-and-test: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Golang env + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + cache: true + - name: Unit Test + run: go test -v