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