Skip to content

Commit

Permalink
Merge pull request METADIUM#24 from Y00nJ1n/dev
Browse files Browse the repository at this point in the history
.github: add CI using Github Action for 'dev' branch
  • Loading branch information
wm-jsong1230 committed Oct 27, 2022
2 parents f772792 + fcd37e5 commit 071bafb
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
60 changes: 60 additions & 0 deletions .github/workflows/dev-ci.yml
@@ -0,0 +1,60 @@
name: dev-ci

on:
pull_request:
branches:
- dev

jobs:
build_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}

- 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.event.pull_request.head.sha }}

- 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.event.pull_request.head.sha }}

- 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
@@ -1,4 +1,4 @@
name: master-cron
name: dev-cron

on:
schedule:
Expand All @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
Expand All @@ -28,6 +30,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
Expand All @@ -41,6 +45,8 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: dev

- name: Set up Go
uses: actions/setup-go@v3
Expand Down

0 comments on commit 071bafb

Please sign in to comment.