From 270462bdc498fa60757e8bdd00a5cc4ea41ccf9f Mon Sep 17 00:00:00 2001 From: Suvorov Daniil Date: Fri, 10 Dec 2021 23:26:38 +0300 Subject: [PATCH] ci: delete travis --- .github/dependabot.yml | 3 --- .github/workflows/master-test.yml | 34 +++++++++++++++++++++++++++++++ .travis.yml | 20 ------------------ README.md | 1 - 4 files changed, 34 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/master-test.yml delete mode 100644 .travis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 65caa981..cc385d95 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,6 +10,3 @@ updates: - dependency-name: github.com/stretchr/testify versions: - 1.7.0 - - dependency-name: golang.org/x/text - versions: - - 0.3.5 diff --git a/.github/workflows/master-test.yml b/.github/workflows/master-test.yml new file mode 100644 index 00000000..ac7cdaa4 --- /dev/null +++ b/.github/workflows/master-test.yml @@ -0,0 +1,34 @@ +--- +name: test +on: + push: + branches: + - master +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: 1.* + - name: Checkout code + uses: actions/checkout@v2 + - name: Fetch all tags + run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Last tag + run: git describe --tags $(git rev-list --tags --max-count=1) --always + - name: Test + env: + SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }} + WIDGET_TOKEN: ${{ secrets.WIDGET_TOKEN }} + GROUP_TOKEN: ${{ secrets.GROUP_TOKEN }} + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + USER_TOKEN: ${{ secrets.USER_TOKEN }} + MARUSIA_TOKEN: ${{ secrets.MARUSIA_TOKEN }} + CLIENT_ID: ${{ secrets.CLIENT_ID }} + GROUP_ID: ${{ secrets.GROUP_ID }} + ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }} + run: go test -v -race -coverprofile=coverage.txt -covermode=atomic -p=1 ./... + - name: codecov + run: bash <(curl -s https://codecov.io/bash) diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 47727020..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -language: go - -cache: - directories: - - $HOME/.cache/go-build - - $HOME/gopath/pkg/mod - -go: - - 1.x - -before_script: - - git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - git describe --tags $(git rev-list --tags --max-count=1) --always - -script: - - go test -v -race -coverprofile=coverage.txt -covermode=atomic -p=1 ./... - -after_success: - - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 0482df9d..60e89dd4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # VK SDK for Golang -[![Build Status](https://travis-ci.com/SevereCloud/vksdk.svg?branch=master)](https://app.travis-ci.com/SevereCloud/vksdk) [![PkgGoDev](https://pkg.go.dev/badge/github.com/SevereCloud/vksdk/v2/v2)](https://pkg.go.dev/github.com/SevereCloud/vksdk/v2?tab=subdirectories) [![VK Developers](https://img.shields.io/badge/developers-%234a76a8.svg?logo=VK&logoColor=white)](https://vk.com/dev/) [![codecov](https://codecov.io/gh/SevereCloud/vksdk/branch/master/graph/badge.svg)](https://codecov.io/gh/SevereCloud/vksdk)