mirror of
https://github.com/dstotijn/hetty
synced 2024-11-10 14:14:18 +00:00
Add initial GitHub actions
Update .github/workflows/build_run.yml Co-authored-by: David Stotijn <dstotijn@gmail.com> Update .github/workflows/go.yml Co-authored-by: David Stotijn <dstotijn@gmail.com> Update .github/workflows/build_run.yml Co-authored-by: David Stotijn <dstotijn@gmail.com> Update .github/workflows/go.yml Co-authored-by: David Stotijn <dstotijn@gmail.com> Update .github/workflows/go.yml Co-authored-by: David Stotijn <dstotijn@gmail.com> Co-authored-by: David Stotijn <dstotijn@gmail.com>
This commit is contained in:
parent
c5bfb96454
commit
46caa05d20
3 changed files with 69 additions and 0 deletions
31
.github/workflows/build_run.yml
vendored
Normal file
31
.github/workflows/build_run.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Build Frontend, Backend and Run
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Images and Deploy Example WebApp
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Test Yarn
|
||||
uses:
|
||||
node_version: '14.x'
|
||||
run: |-
|
||||
cd admin && \
|
||||
yarn install && \
|
||||
yarn export
|
||||
|
||||
- name: Test make
|
||||
run: |-
|
||||
cd .. && \
|
||||
make build
|
||||
|
||||
- name: Run
|
||||
run: |-
|
||||
./hetty
|
14
.github/workflows/dockerimage.yml
vendored
Normal file
14
.github/workflows/dockerimage.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: Docker Image CI
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag hetty:$(date +%s)
|
24
.github/workflows/go.yml
vendored
Normal file
24
.github/workflows/go.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Go
|
||||
on: [pull_request]
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Set up Go 1.15
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.15
|
||||
id: go
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Get dependencies
|
||||
run: |
|
||||
go get -v -t -d ./...
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./cmd/hetty
|
Loading…
Reference in a new issue