Skip to content

Commit

Permalink
ci: fix go version
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed May 6, 2024
1 parent c1fbe6a commit cee76a9
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ name: Release
on:
push:
tags:
- '*'
- "*"
branches-ignore:
- '*'
- "*"

jobs:
check:
Expand All @@ -37,10 +37,10 @@ jobs:
uses: apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
- uses: actions/setup-go@v4
with:
go-version: '>=1.20.2'
go-version: ">=1.20.2"
- name: Run test
run: go test -v

bats-test:
name: Bats Test
runs-on: ubuntu-latest
Expand All @@ -51,9 +51,9 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v4
with:
go-version: '>=1.20.2'
go-version: ">=1.20.2"
- name: Build nuv
run: |
run: |
go build -o nuv
mv nuv /usr/local/bin
- name: Run bats test
Expand All @@ -62,30 +62,29 @@ jobs:
rm -Rf ~/.nuv/olaris
bats/bin/bats .
release:
needs: [check, bats-test]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-20.04, macos-latest, windows-latest]
go: [1.20.x]
go: [1.21.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build Package
run: go build -o bin/nuv ; cd bin ; cp nuv nuv.exe ; ./nuv ${{matrix.os}}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
env:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build Package
run: go build -o bin/nuv ; cd bin ; cp nuv nuv.exe ; ./nuv ${{matrix.os}}
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
with:
artifacts: "nuv_${{ github.ref_name }}*"
allowUpdates: true
omitBody: true

0 comments on commit cee76a9

Please sign in to comment.