Skip to content

Commit

Permalink
chore: added test.yml to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fatmaebrahim committed Sep 21, 2024
1 parent 32be572 commit 2fadb42
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: gotest
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5

- name: Build
run: go build -o bin/ginserver ./cmd/ginmain/main.go
run: go build -o bin/httpserver ./cmd/httpmain/main.go

golangci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5

- name: Format
run: go fmt ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60

testing:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5

- name: Test
run: go test ./test

0 comments on commit 2fadb42

Please sign in to comment.