Skip to content

Commit

Permalink
chore: update workflows to install task manually
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelopsio committed Nov 22, 2024
1 parent 800b995 commit ce716fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ jobs:
go-version: "1.21"
cache: false

# Install Task using direct download instead of the action
- name: Install Task
uses: arduino/setup-task@v1
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --config=.golangci.yml --out-format=colored-line-number
args: --config=.golangci.yml
skip-cache: true
install-mode: binary

Expand All @@ -47,6 +49,11 @@ jobs:
go-version: "1.21"
cache: false

# Install Task for release job
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -68,6 +75,11 @@ jobs:
go-version: "1.21"
cache: false

# Install Task for goreleaser job
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

# Install Task using direct download instead of the action
- name: Install Task
uses: arduino/setup-task@v1
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Run Tests
run: |
Expand Down

0 comments on commit ce716fc

Please sign in to comment.