Skip to content

Commit

Permalink
Read .go-version
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jan 13, 2022
1 parent df322ea commit 7ac9f4f
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 44 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/macos-filebeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-heartbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-metricbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-packetbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-auditbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-filebeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-functionbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-heartbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-metricbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-osquerybeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/macos-xpack-packetbeat.yml
Expand Up @@ -14,13 +14,14 @@ jobs:
macos:
runs-on: macos-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
- uses: actions/checkout@v2
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v2
with:
go-version: '1.17.5'
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get -u github.com/magefile/mage
- uses: actions/checkout@v2
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
Expand Down

0 comments on commit 7ac9f4f

Please sign in to comment.