Skip to content

Commit

Permalink
Enable build action for PR (elastic#40)
Browse files Browse the repository at this point in the history
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
  • Loading branch information
zirain committed Apr 24, 2023
1 parent 5bed099 commit 0da28c4
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@ name: Build
on:
push:
branches:
- '*'
- "*"
pull_request:
branches:
- "*"
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
id: go

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

- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Run tests
run: go test -v ./...
- name: Run tests
run: go test -v ./...

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

0 comments on commit 0da28c4

Please sign in to comment.