Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Update github actions (major) #1845

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/benchmark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout current branch
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go
Expand All @@ -28,21 +28,21 @@ jobs:
run: go test -bench=. -run=^$ -benchmem -cpu=1 -count=10 -timeout=6h ./... | tee current.txt

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: current
path: current.txt

- name: Checkout master branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 'master'

- name: Benchmark Master
run: go test -bench=. -run=^$ -benchmem -cpu=1 -count=10 -timeout=6h ./... | tee master.txt

- name: Download results of "Benchmark current PR"
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: current

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-compose-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/go-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:
docker_image_15: ${{ steps.metadata.outputs.docker_image_15 }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: timescale/promscale
ref: ${{ inputs.ref }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
# - {name: "Multinode", shortname: "multinode", multi: true, pg: 14}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: timescale/promscale
ref: ${{ inputs.ref }}
Expand All @@ -97,21 +97,21 @@ jobs:
run: wget https://github.com/timescale/promscale-test-data/raw/main/traces-dataset.sz -O pkg/tests/testdata/traces-dataset.sz

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -139,27 +139,27 @@ jobs:
# - {name: "Multinode", shortname: "multinode", multi: true, pg: 14}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: timescale/promscale
ref: ${{ inputs.ref }}

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -178,27 +178,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: timescale/promscale
ref: ${{ inputs.ref }}

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/go-releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

-
name: Set up Go
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
-
name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
#login only on tags. Note that login can't work on PRs from forked repos because of missing secrets
#this gets around that by only logging in when needed.
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -41,7 +41,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Run GoReleaser Test
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
# do not run test if actually releasing
if: startsWith(github.ref, 'refs/tags/') != true
with:
Expand All @@ -50,7 +50,7 @@ jobs:
args: release --snapshot --skip-publish --rm-dist -f .goreleaser.yml
-
name: GoReleaser Release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
#release only on tags
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/go-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -44,21 +44,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
lfs: true

- name: Checkout LFS objects
run: git lfs checkout

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run ShellCheck
run: make shellcheck
Expand All @@ -30,16 +30,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.golangci-lint-version }}

Expand All @@ -61,19 +61,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout test data files
run: wget https://github.com/timescale/promscale-test-data/raw/main/traces-dataset.sz -O pkg/tests/testdata/traces-dataset.sz

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- name: Use Go module caching
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -89,7 +89,7 @@ jobs:

- name: 'Upload Log Artifact'
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: unit-run.log
path: unit-run.log
Expand All @@ -104,10 +104,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run Gosec Security Scanner
uses: securego/gosec@v2.14.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
#- 12
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mixin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
runs-on: ubuntu-latest
name: Check monitoring mixin
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Go ${{ env.golang-version }}
uses: actions/setup-go@v3.5.0
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ env.golang-version }}
id: go

- uses: actions/setup-go@v3
- uses: actions/setup-go@v5
with:
go-version: ${{ env.golang-version }}

Expand Down
Loading