Skip to content

Commit

Permalink
ci: add qa
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Feb 4, 2024
1 parent 8e5e230 commit 18911ed
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Quality assurance

on:
- push
- workflow_dispatch

env:
GO_VERSION: '1.21.4'

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install project deps
run: go mod tidy

- name: Check code style with golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Check code style with revive
uses: docker://morphy/revive-action:v2
with:
config: revive.toml
path: "./..."
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install project deps
run: go mod tidy

- name: Test
run: make test

0 comments on commit 18911ed

Please sign in to comment.