diff --git a/.github/workflows/build.yml b/.github/workflows/build_img.yml similarity index 86% rename from .github/workflows/build.yml rename to .github/workflows/build_img.yml index b07e9783..36bf96e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build_img.yml @@ -23,18 +23,6 @@ jobs: - name: Checkout 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 uses: docker/login-action@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/go_build_test.yml similarity index 69% rename from .github/workflows/test.yml rename to .github/workflows/go_build_test.yml index 85c15f70..ecd2f4f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/go_build_test.yml @@ -1,4 +1,4 @@ -name: Build Test +name: Go Build Test on: push: @@ -7,10 +7,6 @@ on: branches: [ "main" ] -env: - REGISTRY: ghcr.io - IMAGE: aichy126/answer - jobs: build-and-push: runs-on: ubuntu-latest @@ -24,8 +20,5 @@ jobs: with: go-version: 1.18 - # - name: Test - # run: go test -v ./... - - - name: Test Build + - name: Go Test Build run: make clean build diff --git a/.github/workflows/node_build_test.yml b/.github/workflows/node_build_test.yml new file mode 100644 index 00000000..edf5b8cb --- /dev/null +++ b/.github/workflows/node_build_test.yml @@ -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