diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 707713f..bee2929 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@master - name: Setup Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: Run go mod download diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4068dd6 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test +on: + push: + branches: + - master + pull_request: +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: + - 1.22.2 + name: test + steps: + - uses: actions/checkout@master + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: Run go mod download + run: go mod download + - name: Run tests + run: go test ./... \ No newline at end of file