From 9d0c73955ae3a0347571781fa260cd83d6f5e092 Mon Sep 17 00:00:00 2001 From: Julien Bisconti Date: Mon, 15 Jan 2024 00:16:18 +0100 Subject: [PATCH] .workflows: update github actions --- .github/workflows/tests-lint.yaml | 11 +++-------- .github/workflows/tests-linux.yml | 15 ++++++++------- .github/workflows/tests-macos.yml | 15 ++++++++------- .github/workflows/tests-tidy.yaml | 10 +++------- .github/workflows/tests-windows.yml | 13 ++++--------- 5 files changed, 26 insertions(+), 38 deletions(-) diff --git a/.github/workflows/tests-lint.yaml b/.github/workflows/tests-lint.yaml index 3f5f79bd4..fb79ca649 100644 --- a/.github/workflows/tests-lint.yaml +++ b/.github/workflows/tests-lint.yaml @@ -15,22 +15,17 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: Symlink source into GOPATH for devcam - run: | - mkdir $(go env GOPATH)/src - ln -s $(pwd) $(go env GOPATH)/src/perkeep.org - - name: Check for fmt compliance run: | go fmt ./... diff --git a/.github/workflows/tests-linux.yml b/.github/workflows/tests-linux.yml index 628e9ff58..c66b8d946 100644 --- a/.github/workflows/tests-linux.yml +++ b/.github/workflows/tests-linux.yml @@ -15,19 +15,20 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + - uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go- + - name: Install fuse run: sudo apt-get install --yes fuse3 - - name: Symlink source into GOPATH for devcam - run: | - mkdir $(go env GOPATH)/src - ln -s $(pwd) $(go env GOPATH)/src/perkeep.org - - name: Build and test run: | go run make.go -v=true diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml index 02f6b6b71..9baaae37e 100644 --- a/.github/workflows/tests-macos.yml +++ b/.github/workflows/tests-macos.yml @@ -15,19 +15,20 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + - uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: ${{ runner.os }}-go- + - name: install sqlite run: brew install sqlite3 pkg-config - - name: Symlink source into GOPATH for devcam - run: | - mkdir $(go env GOPATH)/src - ln -s $(pwd) $(go env GOPATH)/src/perkeep.org - - name: Build and test run: | go run make.go -v=true diff --git a/.github/workflows/tests-tidy.yaml b/.github/workflows/tests-tidy.yaml index 7b4d60f5f..71fcddae4 100644 --- a/.github/workflows/tests-tidy.yaml +++ b/.github/workflows/tests-tidy.yaml @@ -15,21 +15,17 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: Symlink source into GOPATH for devcam - run: | - mkdir $(go env GOPATH)/src - ln -s $(pwd) $(go env GOPATH)/src/perkeep.org - name: Check for tidyness run: | go mod tidy diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml index 10d2edea7..35a381fc1 100644 --- a/.github/workflows/tests-windows.yml +++ b/.github/workflows/tests-windows.yml @@ -15,22 +15,17 @@ jobs: runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: - path: ~/go/pkg/mod + path: ~\go\pkg\mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: Symlink source into GOPATH for devcam - run: | - mkdir "$(go env GOPATH)/src" - New-Item -ItemType SymbolicLink -Path "$(go env GOPATH)/src/perkeep.org" -Target "$(pwd)" - - name: Build and test run: | go run make.go -v