-
-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (29 loc) · 1.01 KB
/
code_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Code Check
on: push
jobs:
code-check:
strategy:
matrix:
go: [1.14.x, 1.15.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@master
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@master
- name: Install PostgreSQL 12
run: |
sudo apt-get -y install bash-completion wget
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get update
sudo apt-get -y install mysql-client postgresql-client-12
- name: Install Project Dependencies
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make install
- name: Check Go Source Code And Style Convention
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make codecheck