From 8335441debecd54c88f325db8f1a2d5b9a71c975 Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Fri, 13 May 2022 00:15:57 +0900 Subject: [PATCH] replaced test action with starter/reusable workflow (#12) --- .github/workflows/standard-go-test.yml | 12 ++++++++++++ .github/workflows/tests.yml | 20 -------------------- go.mod | 4 ++-- go.sum | 4 ++-- 4 files changed, 16 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/standard-go-test.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/standard-go-test.yml b/.github/workflows/standard-go-test.yml new file mode 100644 index 0000000..9788981 --- /dev/null +++ b/.github/workflows/standard-go-test.yml @@ -0,0 +1,12 @@ +name: Standard Test + +on: + push: + branches: [ main ] + pull_request: + +jobs: + call-standard-test: + name: Test + uses: gobuffalo/.github/.github/workflows/go-test.yml@v1 + secrets: inherit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 2f414cf..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Tests -on: [push] -jobs: - tests-on: - name: ${{matrix.go-version}} ${{matrix.os}} - runs-on: ${{ matrix.os }} - strategy: - matrix: - go-version: [1.16.x, 1.17.x] - os: [macos-latest, windows-latest, ubuntu-latest] - steps: - - name: Checkout Code - uses: actions/checkout@v2 - with: - fetch-depth: 1 - - name: Test - run: | - go test -race ./... - - diff --git a/go.mod b/go.mod index cc419cf..0212d19 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ module github.com/gobuffalo/here -go 1.13 +go 1.16 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/kr/pretty v0.3.0 // indirect - github.com/stretchr/testify v1.7.0 + github.com/stretchr/testify v1.7.1 gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/go.sum b/go.sum index 775debe..89abdca 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=