Move branch module to the menu package #88
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: Go | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: Set private packages | |
run: go env -w GOPRIVATE=github.com/teonet-go/teonet,github.com/teonet-go/teomon,github.com/teonet-go/tru | |
- name: Change Github URL | |
env: | |
USER: ${{ secrets.USER }} | |
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
run: git config --global url."https://$USER:$PERSONAL_TOKEN@github.com".insteadOf "https://github.com" | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v ./... |