From 6bcac0a50b3e2d9906150aea5e6fe198db682cb7 Mon Sep 17 00:00:00 2001 From: Luke Park Date: Tue, 9 May 2023 10:17:00 +0900 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000000..9c7375cc86e5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,58 @@ +name: feat-vrf-ci + +on: + workflow_dispatch: + +jobs: + build_test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build Go-WEMIX + run: make gwemix.tar.gz + - name: Check Build + run: ls -al build/gwemix.tar.gz + + lint_test: + strategy: + fail-fast: false + matrix: + version: [1.17, 1.18, 1.19] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.version }} + + - name: Check Lint + run: make lint + + unit_test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.ref }} + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Check golang Test Cases + run: | + unset ANDROID_HOME + make test-short