From e5feb4a2fcabda8e14b75070ccd5bcf09556ba25 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 3 Jun 2023 22:35:28 +0300 Subject: [PATCH] update CI --- .github/workflows/go.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3284c0e..705cf8e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,5 +1,8 @@ -name: Go Build +# Go Build & Release CI +name: Go Build & Release CI +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch on: push: branches: @@ -7,22 +10,21 @@ on: pull_request: branches: - main - jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@latest + with: + fetch-depth: 0 + - run: git fetch --force --tags - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.20 - - - name: Install external dependencies - run: go mod download + go-version: "1.20.x" + cache: true - name: Build - run: go build -o go-cdn + run: go build -v ./...