Skip to content

Commit

Permalink
chore: add lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxVitoxxx committed Sep 27, 2023
1 parent b3e3f22 commit 9ea44c5
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Lint and Testing

on:
push:

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest

tests:
runs-on: ubuntu-latest
container: golang:1.20-alpine
steps:
- uses: actions/checkout@v4
- name: Testing
run: |
go test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
testss:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Test with the Go CLI
run: |
go test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1

0 comments on commit 9ea44c5

Please sign in to comment.