diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 17a2a56..d1ea385 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,20 +1,32 @@ name: Test + on: pull_request: push: branches: - master + jobs: - test: - runs-on: ${{ matrix.os }} + build: + strategy: matrix: - os: [ubuntu-latest, macos-latest] - version: [1.18, 1.19] + os: [ ubuntu-latest, macos-latest ] + go-version: [ 1.18, 1.19 ] + + runs-on: ${{ matrix.os }} + steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Go ${{ matrix.go-version }} + uses: actions/setup-go@v4 with: - go-version: ${{ matrix.version }} - - run: go build - - run: go test + go-version: ${{ matrix.go-version }} + + - name: Build Go package + run: go build + + - name: Test Go package + run: go test -exec sudo diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29