chore: add Github Actions files

This commit is contained in:
2023-12-29 14:00:40 +03:00
parent d40c0c6362
commit b2029e04a2
2 changed files with 43 additions and 0 deletions
+16
View File
@@ -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
+27
View File
@@ -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 ./...