diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6cecf55 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.13.x, 1.14.x] + runs-on: ubuntu-latest + env: + ONIGURUMA_VERSION: 6.9.1 + steps: + - name: Install libonig5 + run: | + wget "http://archive.ubuntu.com/ubuntu/pool/universe/libo/libonig/libonig5_${ONIGURUMA_VERSION}-1_amd64.deb" + sudo dpkg -i "libonig5_${ONIGURUMA_VERSION}-1_amd64.deb" + wget "http://archive.ubuntu.com/ubuntu/pool/universe/libo/libonig/libonig-dev_${ONIGURUMA_VERSION}-1_amd64.deb" + sudo dpkg -i "libonig-dev_${ONIGURUMA_VERSION}-1_amd64.deb" + + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Test + run: go test -v ./... \ No newline at end of file diff --git a/go.mod b/go.mod index d732ff2..59236e0 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ -module github.com/src-d/go-oniguruma +module github.com/go-enry/go-oniguruma + +go 1.14