diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2be16f4..2137f07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ permissions: jobs: golangci: - name: lint + name: Go lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -56,8 +56,8 @@ jobs: # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'. # install-mode: "goinstall" - test: - name: Run Go tests + gotest: + name: Go tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -73,3 +73,23 @@ jobs: - name: Test uses: robherley/go-test-action@v0 + + git-version: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} # checkout the correct branch name + fetch-depth: 0 # fetch the whole repo history + + - name: Git Version + id: version + uses: codacy/git-version@2.7.1 + + - name: Use the version + run: | + echo ${{ steps.version.outputs.version }} + - name: Use the previous version + run: | + echo ${{ steps.version.outputs.previous-version }} diff --git a/.github/workflows/semver-lable.yml b/.github/workflows/semver-lable.yml deleted file mode 100644 index b1219a6..0000000 --- a/.github/workflows/semver-lable.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Semantic Versioning Label - -on: - push: - branches: - - v2/master - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} # checkout the correct branch name - fetch-depth: 0 # fetch the whole repo history - - - name: Git Version - id: version - uses: codacy/git-version@2.7.1 - - - name: Use the version - run: | - echo ${{ steps.version.outputs.version }} - - name: Use the previous version - run: | - echo ${{ steps.version.outputs.previous-version }} \ No newline at end of file