2020-03-19 16:38:22 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
name: Test
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.13.x, 1.14.x]
|
|
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2020-03-19 16:43:40 +00:00
|
|
|
|
2020-03-29 17:22:56 +00:00
|
|
|
- name: Set git on win to use LF
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf false
|
|
|
|
git config --global core.eol lf
|
2020-03-19 16:38:22 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
2020-03-19 16:43:40 +00:00
|
|
|
run: go test ./...
|
2020-03-28 19:36:48 +00:00
|
|
|
env:
|
|
|
|
ENRY_DEBUG: 1
|
2020-03-19 16:43:40 +00:00
|
|
|
test-oniguruma:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.13.x, 1.14.x]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2020-04-24 17:18:27 +00:00
|
|
|
ONIGURUMA_VERSION: 6.9.4
|
2020-03-19 16:43:40 +00:00
|
|
|
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 ./...
|
|
|
|
env:
|
|
|
|
GO_TAGS: oniguruma
|