diff --git a/path_to_workflow_file b/path_to_workflow_file new file mode 100644 index 0000000..cacfe3f --- /dev/null +++ b/path_to_workflow_file @@ -0,0 +1,37 @@ +name: Go Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Get dependencies + run: go mod download + + - name: Build + run: make build + + - name: Lint + run: make lint + + - name: Test + run: make test + + - name: Lock Threads + uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}