add side effects import for image/jpeg png and gif to avoid image: unknown format #613
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.21 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Install linux deps | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libvips-dev | |
- name: Get dependencies | |
run: | | |
go get -v -t -d ./... | |
- name: Build | |
run: go build -v ./vips | |
- name: Test | |
run: go test -v -coverprofile=profile.cov ./... | |
- name: Coveralls | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: profile.cov |