diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..0bbb90b --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,35 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.22.x', '1.23.x' ] + + steps: + - uses: actions/checkout@v4 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + + # You can test your matrix by printing the current Go version + - name: Display Go version + run: go version + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test + run: go test -v ./... diff --git a/go.mod b/go.mod index 9a3feab..539d5b7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/zolstein/type-walk -go 1.22.2 +go 1.22 require ( github.com/goccy/go-reflect v1.2.0