diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 000000000..b5fcdfca8 --- /dev/null +++ b/.github/workflows/docker.yml @@ -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 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 000000000..e59f8ded7 --- /dev/null +++ b/.github/workflows/go.yml @@ -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