diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..ef14d802 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# see: +# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners +* @openziti/sig-core + diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..d921d0ff --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 00000000..aa89f386 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,41 @@ +name: golangci-lint +on: + pull_request: +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.19 + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: v1.49 + + # Optional: working directory, useful for monorepos + # working-directory: somedir + + # Optional: golangci-lint command line arguments. + #args: --build-tags some-tag + + # Optional: show only new issues if it's a pull request. The default value is `false`. + # only-new-issues: true + + # Optional: if set to true then the all caching functionality will be complete disabled, + # takes precedence over all other caching options. + # skip-cache: true + + # Optional: if set to true then the action don't cache or restore ~/go/pkg. + # skip-pkg-cache: true + + # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. + # skip-build-cache: true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..fd854512 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: build + +on: + push: + branches: + - main + - release-* + pull_request: + workflow_dispatch: + +concurrency: main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Git Checkout + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version: '1.19.x' + + - name: Install Ziti CI + uses: netfoundry/ziti-ci@v1 + + - name: Build and Test + run: go test ./...