From 376005589d0a55db344cbd53cecdb6245525d416 Mon Sep 17 00:00:00 2001 From: Jordi Martin Date: Mon, 8 Apr 2024 21:56:09 +0200 Subject: [PATCH] Replace travis for github actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ .gitignore | 1 - .travis.yml | 10 ---------- 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ca72924 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + go-version: [1.14] + + steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: Build + run: make test + + - name: Test with coverage + run: make coverage + + - name: Upload coverage to Codecov + run: bash <(curl -s https://codecov.io/bash) diff --git a/.gitignore b/.gitignore index d1a41ad..4eb401b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ debug.test data/* /vendor coverage.txt -.github dist .vscode .idea diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b26d022..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: go -go: - - 1.14 - -script: - - make test - - make coverage - -after_success: - - bash <(curl -s https://codecov.io/bash) \ No newline at end of file