diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..43cd1b8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,24 @@ +# 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/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "gomod" + directory: "/" + schedule: + interval: "monthly" + groups: + default: + patterns: + - "*" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + default: + patterns: + - "*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b3481c6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,48 @@ +name: CI + +permissions: + contents: read + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + + - uses: actions/setup-go@v6 + with: + go-version: stable + + - name: golangci-lint + uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 + with: + version: v2.5 + + test: + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [ubuntu, windows, macos] + steps: + - uses: actions/checkout@v5 + + - name: Set up Go + uses: actions/setup-go@v6 + with: + go-version: stable + + - name: Test + run: go test -v -coverprofile="coverage.txt" ./... + + - name: Upload coverage reports to Codecov + # upload coverage reports only once + uses: shogo82148/actions-goveralls@25f5320d970fb565100cf1993ada29be1bb196a1 + with: + path-to-profile: coverage.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000..44e74e9 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# platforma + +[![Coverage Status](https://coveralls.io/repos/github/mishankov/platforma/badge.svg?branch=main)](https://coveralls.io/github/mishankov/platforma?branch=main)