Skip to content

Commit

Permalink
ci: add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbolgarin committed Dec 5, 2024
1 parent edfb9d6 commit c7d4957
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/dockertest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Go with Docker

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
- '1.23'
- '1.x'
services:
dind:
image: docker:23.0-rc-dind-rootless
ports:
- 2375:2375
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Test with Docker
run: go test -v -race ./...

0 comments on commit c7d4957

Please sign in to comment.