From e307146cc428e79c06a374a3ef6eb0fb2bd8aa5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Men=C3=A9ndez?= Date: Thu, 14 Nov 2024 12:11:29 +0100 Subject: [PATCH] update github workflows actions --- .github/workflows/circomtest.yml | 6 +++--- .github/workflows/lint.yml | 22 ++++++++++++++-------- .github/workflows/test.yml | 7 ++++--- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/.github/workflows/circomtest.yml b/.github/workflows/circomtest.yml index 4d491f3..da43c3a 100644 --- a/.github/workflows/circomtest.yml +++ b/.github/workflows/circomtest.yml @@ -8,13 +8,13 @@ jobs: node-version: [16.x] go-version: [1.23.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: run circom tests diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index af3ab6a..4888ea2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,13 +4,19 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: - go-version: 1.23.x - - name: Checkout code - uses: actions/checkout@v2 - - name: Lint - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0 - $(go env GOPATH)/bin/golangci-lint run --timeout=5m -c .golangci.yml + go-version: ${{ matrix.go-version }} + cache: true + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + args: --timeout 5m --verbose + skip-cache: false + skip-pkg-cache: false + skip-build-cache: false + only-new-issues: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e83bc95..7ff3da6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,12 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v1 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 + cache: true - name: Run tests run: go test ./...