Skip to content

Commit

Permalink
test: add sanity test github action
Browse files Browse the repository at this point in the history
fix sanity test failure

fix test failure
  • Loading branch information
andyzhangx committed Oct 17, 2021
1 parent cb479b3 commit c3813a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linux Unit tests
on:
pull_request: {}
push: {}

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.17
id: go

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

- name: Sanity test
env:
GITHUB_ACTIONS: true
run: |
export PATH=$PATH:$HOME/.local/bin
make
echo "is running in github actions: $GITHUB_ACTIONS"
make sanity-test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ all: build
include release-tools/build.make

.PHONY: sanity-test
sanity-test: build
sanity-test:
./test/sanity/run-test.sh

0 comments on commit c3813a3

Please sign in to comment.