Introduce github actions (#375)
This commit is contained in:
parent
14ca4c8427
commit
2fc1971e61
2 changed files with 71 additions and 0 deletions
20
.github/workflows/docker.yml
vendored
Normal file
20
.github/workflows/docker.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
# pull_request:
|
||||
# branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install
|
||||
run: curl -sfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | bash -s -- -b $GOPATH/bin v0.5.1
|
||||
- name: Build
|
||||
run: make publish-images
|
||||
51
.github/workflows/go.yml
vendored
Normal file
51
.github/workflows/go.yml
vendored
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Setup
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ^1.14
|
||||
id: go
|
||||
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Tools
|
||||
run: make install
|
||||
|
||||
- name: UI
|
||||
run: make ui
|
||||
|
||||
|
||||
- name: Assets
|
||||
run: make assets
|
||||
|
||||
- name: Clean
|
||||
run: |
|
||||
go mod tidy
|
||||
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
||||
|
||||
- name: Build
|
||||
run: make build
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
Loading…
Add table
Add a link
Reference in a new issue