Skip to content

Commit

Permalink
actions: use v3 and mage install (#32780)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Aug 24, 2022
1 parent 93b5952 commit 2ebe891
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/check-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Run check-default
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/magefile/mage@latest
go install github.com/magefile/mage
make check-default
7 changes: 3 additions & 4 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install libpcap-dev
Expand All @@ -30,6 +30,5 @@ jobs:
run: sudo apt-get install -y librpm-dev
- name: Run check
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/magefile/mage@latest
go install github.com/magefile/mage
make check
7 changes: 3 additions & 4 deletions .github/workflows/check-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install libpcap-dev
run: sudo apt-get install -y libpcap-dev
- name: Run check/update
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/magefile/mage@latest
go install github.com/magefile/mage
make -C ${{ env.BEAT_MODULE }} check update
make check-no-changes
4 changes: 2 additions & 2 deletions .github/workflows/check-xpack-packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Install libpcap-dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ jobs:
echo Changed GOPATH to ${{ env.MACOS_GOPATH }}
echo "GOPATH="${{ env.MACOS_GOPATH }} >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ github.event.inputs.go_version }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
run: go install github.com/magefile/mage
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ env.GITHUB_REF }}
Expand Down

0 comments on commit 2ebe891

Please sign in to comment.