Skip to content

Commit

Permalink
github wf
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Sep 16, 2023
1 parent 46a4de5 commit 99e7c61
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "*" ]

jobs:

golint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'

- name: Format
run: make fmt

- name: Lint
run: make lint
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "*" ]

jobs:

gotest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'

- name: Test
run: make test

0 comments on commit 99e7c61

Please sign in to comment.