Skip to content

Commit

Permalink
add(workflow): Add a workflow for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
owlinux1000 committed Sep 30, 2023
1 parent 4a74ce4 commit e9a302f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: pull_request

on:
pull_request:
types: [opened,synchronize]

jobs:
pull_request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true

- name: Go Build
run: |
go build -v ./...
- name: Go Test
run: |
go test -v ./...

0 comments on commit e9a302f

Please sign in to comment.