From fcd6057e882df25bff3eeb33affa45bb244bffdd Mon Sep 17 00:00:00 2001 From: Avelino Date: Thu, 16 Dec 2021 05:58:37 -0300 Subject: [PATCH] migrate travis to github actions ref: #3943 Signed-off-by: Avelino --- .github/workflows/tests.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..d36343ea --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,30 @@ +name: Run tests + +on: + push: + branches: + - 'master' + pull_request: + +jobs: + build: + name: Running test + runs-on: ubuntu-latest + environment: netlify + strategy: + matrix: + go: ['1.15.x'] + steps: + - uses: actions/checkout@1.0.0 + - name: Get dependencies + run: go get -v -t -d ./... + - name: Run tests + run: go test + - name: netlify awesome-go.com + uses: jsmrcaga/action-netlify-deploy@v1.1.0 + if: contains('refs/heads/master', github.ref) + with: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_DEPLOY_TO_PROD: true + build_directory: tmpl