From c7487540f7fec12262f53794b34bf59e6cdb6d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Thu, 19 Mar 2020 17:09:23 +0100 Subject: [PATCH] ci: setup github actions --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ go.mod | 4 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml 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