diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ebb5e4f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: 'ci' + +on: + push: + branches: + - main + - github-ci + pull_request: + +jobs: + ci: + strategy: + matrix: + os: [ 'ubuntu-22.04' ] + go: [ '1.21', '1.22' ] + runs-on: ${{ matrix.os }} + steps: + - name: 'Checkout source code' + uses: 'actions/checkout@v3' + + - name: 'Set up Go' + uses: 'actions/setup-go@v4' + with: + go-version: ${{ matrix.go }} + + - name: 'Test' + run: go list -f '{{.Dir}}/...' -m | xargs go test