From 1e8a890b025883f468deb6068fbb22081b87ab09 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 26 Feb 2023 16:00:15 -0600 Subject: [PATCH] update actions versions in ci --- .github/workflows/ci-site.yml | 6 +++--- .github/workflows/ci.yml | 23 ++++++++++++----------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-site.yml b/.github/workflows/ci-site.yml index 4ef0ed6..ca5bc77 100644 --- a/.github/workflows/ci-site.yml +++ b/.github/workflows/ci-site.yml @@ -22,14 +22,14 @@ jobs: steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: available platforms run: echo ${{ steps.buildx.outputs.platforms }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6772a9..79d1ace 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,13 +12,13 @@ jobs: steps: - name: set up go 1.19 - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.19 id: go - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: build and test run: | @@ -29,28 +29,29 @@ jobs: GOFLAGS: "-mod=vendor" TZ: "America/Chicago" - - name: install golangci-lint and goveralls - run: | - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $GITHUB_WORKSPACE v1.48.0 - GO111MODULE=off go get -u github.com/mattn/goveralls - - name: run linters - run: $GITHUB_WORKSPACE/golangci-lint run + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest env: - GOFLAGS: "-mod=vendor" TZ: "America/Chicago" + - name: install goveralls + run: | + GO111MODULE=off go get -u github.com/mattn/goveralls + - name: submit coverage run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 - name: set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: available platforms run: echo ${{ steps.buildx.outputs.platforms }}