Merge pull request #968 from mmorel-35/patch-1

fix workflow warnings
This commit is contained in:
Casey Callendrello 2023-10-31 11:47:42 +01:00 committed by GitHub
commit f7662a2435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,28 +12,28 @@ jobs:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- name: setup go - name: setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: go.mod
- uses: actions/checkout@v4
- uses: ibiqlik/action-yamllint@v3 - uses: ibiqlik/action-yamllint@v3
with: with:
format: auto format: auto
- uses: golangci/golangci-lint-action@v3 - uses: golangci/golangci-lint-action@v3
with: with:
args: -v args: -v
skip-cache: true
build: build:
name: Build all linux architectures name: Build all linux architectures
needs: lint needs: lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4
- name: setup go - name: setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: go.mod
- uses: actions/checkout@v4
- name: Build on all supported architectures - name: Build on all supported architectures
run: | run: |
set -e set -e
@ -53,16 +53,15 @@ jobs:
sudo apt-get install linux-modules-extra-$(uname -r) sudo apt-get install linux-modules-extra-$(uname -r)
- name: Install nftables - name: Install nftables
run: sudo apt-get install nftables run: sudo apt-get install nftables
- uses: actions/checkout@v4
- name: setup go - name: setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: go.mod
- name: Set up Go for root - name: Set up Go for root
run: | run: |
sudo ln -sf `which go` `sudo which go` || true sudo ln -sf `which go` `sudo which go` || true
sudo go version sudo go version
- uses: actions/checkout@v4
- name: Install test binaries - name: Install test binaries
run: | run: |
@ -85,10 +84,10 @@ jobs:
needs: build needs: build
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v4
- name: setup go - name: setup go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: ${{ env.GO_VERSION }} go-version-file: go.mod
- uses: actions/checkout@v4
- name: test - name: test
run: bash ./test_windows.sh run: bash ./test_windows.sh