From b7d41fbe0551c81cc6e49b7fcb4c2844c3cf536e Mon Sep 17 00:00:00 2001 From: Alec Sammon Date: Thu, 19 Jan 2023 16:45:36 +0000 Subject: [PATCH] Add dependabot and workflow actions (#1) --- .github/dependabot.yml | 9 +++++++++ .github/workflows/golangci-lint.yml | 20 ++++++++++++++++++++ .github/workflows/unit-test.yml | 21 +++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/golangci-lint.yml create mode 100644 .github/workflows/unit-test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2269aa1 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: "gomod" + directory: / + schedule: + interval: "weekly" + day: "wednesday" + time: "08:00" + open-pull-requests-limit: 2 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..0f36f72 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,20 @@ +name: golangci-lint +on: + push: + pull_request: + +jobs: + golangci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml new file mode 100644 index 0000000..29d5479 --- /dev/null +++ b/.github/workflows/unit-test.yml @@ -0,0 +1,21 @@ +name: unit-tests +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...