Skip to content

Commit

Permalink
feat: Adding github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 10, 2024
1 parent 0a7a12e commit d88ae9b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Build
run: go build -v ./...


golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Go Format
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: './src'
gofmt-flags: '-l -d'
- name: Test with the Go CLI
run: go test ./pkg

0 comments on commit d88ae9b

Please sign in to comment.