Skip to content

Commit 5e7d7c0

Browse files
committed
chore: install only mage
1 parent be4d28d commit 5e7d7c0

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,22 @@ jobs:
2222
with:
2323
go-version-file: go.mod
2424

25+
- name: Install Mage
26+
uses: magefile/mage-action@v3
27+
with:
28+
install-only: true
29+
2530
build:
2631
runs-on: ubuntu-latest
2732
needs: setup
2833
steps:
2934
- name: Checkout code
3035
uses: actions/checkout@v3
3136

32-
- name: Run Mage
33-
uses: magefile/mage-action@v3
37+
# - name: Run Mage
38+
# uses: magefile/mage-action@v3
39+
# with:
40+
# install-only: true
3441

3542
- name: Build
3643
run: |
@@ -48,8 +55,10 @@ jobs:
4855
wget -qO - https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${{ needs.setup.outputs.go-path }} ${{env.GOLANGCI_LINT_VERSION}}
4956
echo "$HOME/go/bin" >> $GITHUB_PATH # Add golangci-lint to the PATH
5057
51-
- name: Run Mage
52-
uses: magefile/mage-action@v3
58+
# - name: Run Mage
59+
# uses: magefile/mage-action@v3
60+
# with:
61+
# install-only: true
5362

5463
- name: Lint
5564
run: |
@@ -67,9 +76,6 @@ jobs:
6776
sudo apt update
6877
sudo apt install -y gcc
6978
70-
- name: Run Mage
71-
uses: magefile/mage-action@v3
72-
7379
- name: Test
7480
run: |
7581
CGO_ENABLED=1 mage -v testRace

0 commit comments

Comments
 (0)