Skip to content

Commit

Permalink
feat: workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
RawanMostafa08 committed Sep 18, 2024
1 parent da2ecce commit ccb0f19
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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/[email protected]
with:
gofmt-path: './src'
gofmt-flags: '-l -d'
test:
steps:
- name: Test with the Go CLI
run: go test -v ./pkg

0 comments on commit ccb0f19

Please sign in to comment.