diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2bf9e00..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..933f818 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,47 @@ +name: build + +on: [ push, pull_request ] + +jobs: + build: + name: Build + runs-on: ${{ matrix.os }} + env: + CGO_CFLAGS_ALLOW: -Xpreprocessor + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04, macOS-10.15, macos-11.0] + + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.13 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Install linux deps + if: matrix.os == 'ubuntu-18.04' || matrix.os == 'ubuntu-20.04' + run: | + sudo add-apt-repository -y ppa:tonimelisma/ppa + sudo apt-get -y install libvips-dev + - name: Install macos deps + if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11.0' + run: | + brew install vips + - name: Get dependencies + run: | + go get -v -t -d ./... + - name: Build + run: go build -v ./cmd/fastgallery + + - name: Test + run: go test -v -coverprofile=profile.cov ./... + + - name: Coveralls + if: matrix.os == 'ubuntu-20.04' + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c1c0978..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: go - -go: -- 1.15 - -env: - - CGO_CFLAGS_ALLOW="-Xpreprocessor" - -matrix: - include: - - os: osx - osx_image: xcode12.2 - - - os: linux - dist: bionic - - - os: linux - dist: focal - -before_install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:tonimelisma/ppa; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y install libvips-dev; fi - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install vips; fi - - go get github.com/mattn/goveralls - -script: - - make deps - - make test - - $GOPATH/bin/goveralls -service=travis-ci diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5523a09..7096b06 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,7 @@ -Thank you for considering helping out!! +Thank you for considering helping out! -I appreciate discussing possible patches/PRs in advance so we're aligned with the development roadmap. +For bug fixes and minor stuff, just send a PR. + +For new functionality and larger changes, please open an issue first so we can discuss approach. Please create tests for any new functionality or bugs you fixed.