Skip to content

Commit

Permalink
Allow goreleaser to have version for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joereuss12 committed Jan 16, 2024
1 parent 977bc6d commit 5c582e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-tags: true
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down Expand Up @@ -115,13 +117,18 @@ jobs:
- name: Add coverage information to action summary
if: github.event_name == 'pull_request'
run: echo 'Code coverage ' ${{steps.cc.outputs.cc_total}}'% Prev ' ${{steps.cc_b.outputs.cc_base_total}}'%' >> $GITHUB_STEP_SUMMARY
- name: Get current version
id: get_version
run: echo "::set-output name=version::$(git describe --tags --abbrev=0)"
- name: Run GoReleaser for Ubuntu
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: --clean --snapshot
env:
VERSION: ${{ steps.get_version.outputs.version }}
- name: Copy files (Ubuntu)
run: |
cp dist/pelican_linux_amd64_v1/pelican ./
Expand Down

0 comments on commit 5c582e6

Please sign in to comment.