[Guides](https://checklane.sh/guides) · Checked on 28 November 2026

# How do I speed up GitHub Actions?

Find the last required check to finish, then trace it back through the [workflow graph](https://docs.github.com/en/actions/how-tos/monitor-workflows/use-the-visualization-graph). If tests are waiting for lint and neither needs the other, run them side by side. If tests already start immediately, look at their slowest step instead.

## Run independent checks in parallel

1.  Open a completed run. Follow the arrows into the last required check. A job can be short and still finish last because it started late.
    
2.  Keep each [`needs` dependency](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-jobs) that enforces a gate or passes an output. In a Go module, `go vet` and `go test` can inspect the same commit independently. This [matrix](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations) gives each its own job.
    

### Tested on 28 November 2026

Test and vet started one second apart on two checklane-2vcpu runners. Both passed; 11 seconds elapsed from the first job starting to the last job finishing.

Show the workflow YAML

```yaml
name: Parallel Go checks
on:
  pull_request:
  workflow_dispatch:
permissions:
  contents: read
jobs:
  check:
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
    runs-on: checklane-2vcpu
    strategy:
      fail-fast: false
      matrix:
        command: [vet, test]
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
        with:
          persist-credentials: false
      - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
        with:
          go-version-file: go.mod
          cache: false
      - run: go ${{ matrix.command }} ./...
```

Compare elapsed time from the start of the run to the last required check, not the sum of the job durations. If the new jobs replace a required check, update the [branch rule](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-status-checks-before-merging) before relying on the new names.

On our own CI, the median PR run took 3 min 19 s. We measured 303 successful first attempts over eight days (20–28 November 2026 UTC), from workflow start to the last job finishing.

Related guide: [How do I cache pnpm in GitHub Actions?](https://checklane.sh/guides/github-actions-pnpm-cache)

## Frequently asked questions

### Where can I see how long each job ran?

Open the workflow run in the Actions tab. The job summary shows execution time for each job, so you can see whether the long run came from tests, lint or the build.

[GitHub: viewing job execution time](https://docs.github.com/en/actions/how-tos/monitor-workflows/view-job-execution-time)

### Why do my matrix jobs run two at a time?

Check strategy.max-parallel. A value of 2 lets only two jobs from that matrix run at once, even when more runners are available.

[GitHub: limiting parallel matrix jobs](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations)

### Can I reuse a dependency cache after the lockfile changes?

Yes. With actions/cache, set a restore-keys prefix shared by older lockfile keys. On a partial match, the action restores the most recent matching cache. Run the install step to fetch anything missing.

[GitHub: cache key matching](https://docs.github.com/en/actions/reference/workflows-and-actions/dependency-caching)

## Run this job on Checklane

When the tests themselves take most of the time, compare the same job at the same cache state on two [runner sizes](https://checklane.sh/docs/runners).

[Connect your repository](https://checklane.sh/docs/moving), then set the job’s runner label:

```
runs-on: checklane
```

---

From https://checklane.sh/guides/speed-up-github-actions
