From f9b1f33fa4479680fc397c39300778cf8a563ced Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 31 Oct 2023 00:06:12 +0100 Subject: [PATCH] fix workflow warnings Signed-off-by: Matthieu MOREL --- .github/workflows/test.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cf4d17c3e..33dcfc0d7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,28 +12,28 @@ jobs: name: Lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: setup go uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v4 + go-version-file: go.mod - uses: ibiqlik/action-yamllint@v3 with: format: auto - uses: golangci/golangci-lint-action@v3 with: args: -v + skip-cache: true build: name: Build all linux architectures needs: lint runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: setup go uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v4 - + go-version-file: go.mod - name: Build on all supported architectures run: | set -e @@ -53,16 +53,15 @@ jobs: sudo apt-get install linux-modules-extra-$(uname -r) - name: Install nftables run: sudo apt-get install nftables - + - uses: actions/checkout@v4 - name: setup go uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: go.mod - name: Set up Go for root run: | sudo ln -sf `which go` `sudo which go` || true sudo go version - - uses: actions/checkout@v4 - name: Install test binaries run: | @@ -85,10 +84,10 @@ jobs: needs: build runs-on: windows-latest steps: + - uses: actions/checkout@v4 - name: setup go uses: actions/setup-go@v4 with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/checkout@v4 + go-version-file: go.mod - name: test run: bash ./test_windows.sh