add Dockerfile.build-and-run to realize multi-stage build;fix @testin… #331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.4.0 | |
- name: Build | |
run: make build-web bililive | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.4.0 | |
- name: Test | |
run: make build-web test | |
- name: Codecov | |
uses: codecov/codecov-action@v2 |