diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc069f6c..1a953fc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,34 +1,29 @@ name: Build -############################# -# Start the job on all push # -############################# on: push: branches: - - master # or the name of your main branch + - master pull_request: types: [opened, synchronize, reopened] - - -############### -# Set the Job # -############### + jobs: build: - # Name the Job - name: Build - # Set the agent to run on runs-on: ubuntu-latest - ################## - # Load all steps # - ################## steps: - ########################## - # Checkout the code base # - ########################## - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build + run: cd main && go build ./... + + - name: Test + run: cd main && go test -short ./... \ No newline at end of file