From 8fcc761d53693abcad54dcd76c181f80914c39db Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 23 Feb 2024 11:36:09 +0100 Subject: [PATCH] Make workflows update themselves as much as possible --- .github/workflows/license_check.yml | 4 ++-- .github/workflows/mobile_tests.yml | 2 +- .github/workflows/platform_tests.yml | 8 ++++---- .github/workflows/static_analysis.yml | 6 +++--- .github/workflows/web_tests.yml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index d41c3a6449..946b0646a6 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -10,9 +10,9 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: WillAbides/setup-go-faster@v1.13.0 + - uses: WillAbides/setup-go-faster@v1 with: - go-version: '1.21.x' + go-version: 'stable' - name: Install lian run: go install lucor.dev/lian@latest diff --git a/.github/workflows/mobile_tests.yml b/.github/workflows/mobile_tests.yml index 4919d08d18..058319fe11 100644 --- a/.github/workflows/mobile_tests.yml +++ b/.github/workflows/mobile_tests.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: ['1.19.x', '1.21.x'] + go-version: ['1.19.x', 'stable'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/platform_tests.yml b/.github/workflows/platform_tests.yml index c56cb7c0a6..740be21b16 100644 --- a/.github/workflows/platform_tests.yml +++ b/.github/workflows/platform_tests.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - go-version: ['1.19.x', '1.21.x'] + go-version: ['1.19.x', 'stable'] os: [ubuntu-latest, macos-latest] include: - os: ubuntu-latest @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: WillAbides/setup-go-faster@v1.13.0 + - uses: WillAbides/setup-go-faster@v1 with: go-version: ${{ matrix.go-version }} @@ -51,12 +51,12 @@ jobs: strategy: fail-fast: false matrix: - go-version: ['1.20.x', '1.21.x'] + go-version: ['1.20.x', 'stable'] steps: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: WillAbides/setup-go-faster@v1.13.0 + - uses: WillAbides/setup-go-faster@v1 with: go-version: ${{ matrix.go-version }} diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 489c47a755..e5598180df 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -13,9 +13,9 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: WillAbides/setup-go-faster@v1.13.0 + - uses: WillAbides/setup-go-faster@v1 with: - go-version: '1.21.x' + go-version: 'stable' - name: Get dependencies run: >- @@ -33,7 +33,7 @@ jobs: run: | go install golang.org/x/tools/cmd/goimports@latest go install github.com/fzipp/gocyclo/cmd/gocyclo@latest - go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 + go install honnef.co/go/tools/cmd/staticcheck@latest go install github.com/mattn/goveralls@latest - name: Vet diff --git a/.github/workflows/web_tests.yml b/.github/workflows/web_tests.yml index dea71861ae..e1170e0171 100644 --- a/.github/workflows/web_tests.yml +++ b/.github/workflows/web_tests.yml @@ -13,9 +13,9 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - uses: WillAbides/setup-go-faster@v1.13.0 + - uses: WillAbides/setup-go-faster@v1 with: - go-version: '1.19.x' + go-version-file: 'go.mod' - name: Get dependencies run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev