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 ./...