mirror of https://gitee.com/answerdev/answer.git
github actions
This commit is contained in:
parent
49f75f0121
commit
2913b96bf3
|
@ -23,18 +23,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
||||||
# - name: Set up Go
|
|
||||||
# uses: actions/setup-go@v3
|
|
||||||
# with:
|
|
||||||
# go-version: 1.18
|
|
||||||
|
|
||||||
# - name: Test
|
|
||||||
# run: go test -v ./...
|
|
||||||
|
|
||||||
# - name: Test Build
|
|
||||||
# run: go build -v ./...
|
|
||||||
|
|
||||||
- name: Login to ghcr.io
|
- name: Login to ghcr.io
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build Test
|
name: Go Build Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,10 +7,6 @@ on:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE: aichy126/answer
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -24,8 +20,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.18
|
||||||
|
|
||||||
# - name: Test
|
- name: Go Test Build
|
||||||
# run: go test -v ./...
|
|
||||||
|
|
||||||
- name: Test Build
|
|
||||||
run: make clean build
|
run: make clean build
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: Node Build Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
|
- name: Test Build
|
||||||
|
run: make install-ui-packages ui
|
Loading…
Reference in New Issue