Skip to content

Commit

Permalink
ci: convert travis-ci to github actions for im6
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Jul 14, 2023
1 parent 893453a commit 7d68f0a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
push:
tags:
- "*"
branches-ignore:
- 'exp_*'
pull_request:
branches-ignore:
- 'exp_*'

jobs:
test:
name: Test ImageMagick6
runs-on: ubuntu-latest
environment: imagemagick6
env:
DOCKER_IMAGE: gographics/imagick.v2:im-${{ vars.IMAGEMAGICK6_VERSION }}
# We want to run on external PRs, but not on our own internal PRs as they'll be run
# by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Test
run: |
docker run --rm \
-v $PWD:/go/projects/imagick \
-v $PWD/.cache/go-build:/root/.cache/go-build \
-v $PWD/.cache/go/pkg:/go/pkg \
"$DOCKER_IMAGE"
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.13
FROM golang:1.20

# Ignore APT warnings about not having a TTY
ENV DEBIAN_FRONTEND noninteractive
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# Go Imagick

[![GoDoc](https://godoc.org/gopkg.in/gographics/imagick.v2/imagick?status.svg)](https://gopkg.in/gographics/imagick.v2/imagick) [![Travis Build Status](https://api.travis-ci.org/gographics/imagick.svg)](https://travis-ci.org/gographics/imagick)
[![GoDoc](https://godoc.org/gopkg.in/gographics/imagick.v2/imagick?status.svg)](https://gopkg.in/gographics/imagick.v2/imagick)
[![Build](https://github.com/gographics/imagick/workflows/Test/badge.svg)](https://github.com/gographics/imagick/actions?query=workflow%3A%22Test%22)

Go Imagick is a Go bind to ImageMagick's MagickWand C API.

We support two compatibility branches:

```
master (tag v2.x.x): 6.9.1-7 <= ImageMagick <= 6.9.9-35
im-7 (tag v3.x.x): 7.x <= ImageMagick <= 7.x
master (tag v2.x.x): 6.9.1-7 <= ImageMagick <= 6.9.9-35
legacy (tag v1.x.x): 6.7.x <= ImageMagick <= 6.8.9-10
```

They map, respectively, through gopkg.in:

```
gopkg.in/gographics/imagick.v2/imagick
gopkg.in/gographics/imagick.v3/imagick
gopkg.in/gographics/imagick.v2/imagick
gopkg.in/gographics/imagick.v1/imagick
```

Expand Down

0 comments on commit 7d68f0a

Please sign in to comment.