diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..ffc40a5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +on: + push: + tags: + - v* + branches: + - master + pull_request: +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.21.x, 1.22.x] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Get dependencies + run: go get ./... + - name: Test + run: | + go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5ff08e7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: go - -go: - - "1.x" - - "1.1" - - "1.4" - - "1.10" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..ff55cdc --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/koofr/resize + +go 1.21