name: Go on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 with: node-version: 16 - name: Build React run: | npm install --global yarn cd net/web yarn install yarn build - name: Setup Go uses: actions/setup-go@v3 with: go-version: 1.17.5 - name: Build Go run: | cd net/server go build databag - name: Test run: | cd net/server go test -v ./... - name: Export uses: actions/upload-artifact@v3 with: name: webapp path: net/web/build/*