Skip to content

Add github workflow #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

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

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

- name: Tidy
run: go mod tidy

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
5 changes: 5 additions & 0 deletions example/request/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module example

go 1.20

require github.com/LightningDev/go-req v0.0.0-20230703062034-0f15fd7febc9
2 changes: 2 additions & 0 deletions example/request/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/LightningDev/go-req v0.0.0-20230703062034-0f15fd7febc9 h1:k6TWCB+sce11gJThxHxEfXAcY0R4hNQjgExBoHFrOqc=
github.com/LightningDev/go-req v0.0.0-20230703062034-0f15fd7febc9/go.mod h1:l/kdC/oYJx7auJIWmepEQcwPDz5nmCrNFgVGSh9pdDA=