From b2029e04a2d905737dd93e577199a1bcf7e3336a Mon Sep 17 00:00:00 2001 From: Sergey Solodyagin Date: Fri, 29 Dec 2023 14:00:40 +0300 Subject: [PATCH] chore: add Github Actions files --- .github/dependabot.yml | 16 ++++++++++++++++ .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8f03032 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + commit-message: + prefix: chore + include: scope + - package-ecosystem: gomod + directory: / + schedule: + interval: weekly + commit-message: + prefix: chore + include: scope diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4751cc2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: test +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + test: + name: Run tests + runs-on: ubuntu-latest + strategy: + matrix: + go: ["1.19.x", "1.20.x", "1.21.x"] + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 2 + - name: Setup Go ${{ matrix.go }} + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: Run Go tests + run: | + go test -v ./...