From 27fb617db48a09de267a55d8400c8ad7a490b315 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 22 Apr 2024 12:39:14 +0200 Subject: [PATCH] CI --- .github/dependabot.yaml | 14 ++++++++++++++ .github/workflows/build.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/dependabot.yaml create mode 100644 .github/workflows/build.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..80d85c4 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + open-pull-requests-limit: 5 + schedule: + interval: 'weekly' + day: 'tuesday' + - package-ecosystem: 'gomod' + directory: '/' + schedule: + interval: 'weekly' + day: 'tuesday' + open-pull-requests-limit: 5 \ No newline at end of file diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..ae359c9 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,25 @@ +name: Go + +on: [push] +permissions: + contents: read + pull-requests: read + checks: write +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version-file: go.mod + - name: Verify + run: go mod verify + - name: Build + run: go build ./... + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: latest + install-mode: binary \ No newline at end of file