Skip to content

Commit

Permalink
Migrate from Drone to Github Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mennanov committed Feb 6, 2023
1 parent d82c25e commit de6fac6
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 104 deletions.
103 changes: 0 additions & 103 deletions .drone.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tests coverage

on: [ "push", "pull_request" ]

jobs:

build:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go 1.20
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Run tests with coverage
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
17 changes: 17 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Linter

on: [ "push", "pull_request" ]

jobs:

build:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go 1.20
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Go vet
run: go vet ./...
20 changes: 20 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Go tests

on: [ push, pull_request ]

jobs:
go-test:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.14', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20' ]

steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -v ./...
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
vendor/
coverage.*
coverage.out
coverage.txt

0 comments on commit de6fac6

Please sign in to comment.