xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.39k stars 947 forks source link

Update versions of github actions used in lint_and_test #1926

Closed heidiberry closed 5 months ago

heidiberry commented 5 months ago

Updating the versions of the github actions used in the lint and test pipeline.

This should remediate the warnings that appear when running the pipeline, e.g.:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

heidiberry commented 5 months ago

Confirmed that the original warnings have gone (e.g. https://github.com/xanzy/go-gitlab/actions/runs/8921003677). However there are now some new warnings:

Restore cache failed: Dependencies file is not found in /home/runner/work/go-gitlab/go-gitlab. Supported file pattern: go.sum

According to https://github.com/actions/setup-go/issues/427, this should be remedied by adding cache: false to the Install Go step, so I'll do that now.

heidiberry commented 5 months ago

The pipeline has no warnings now