Skip to content

Commit

Permalink
fix: add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmanish committed Sep 15, 2024
1 parent 4d3237b commit fd1bbde
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'

- name: Install dependencies
run: go mod tidy

- name: Run GolangCI-Lint
run: go run github.com/golangci/golangci-lint/cmd/golangci-lint run
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'

- name: Install dependencies
run: go mod tidy

- name: Run tests
run: go test ./...

0 comments on commit fd1bbde

Please sign in to comment.