Skip to content

Commit

Permalink
ci: cache go mod and universal-ctags
Browse files Browse the repository at this point in the history
Cody generated this in the time I was waiting for a PR run to go green.

Test Plan: CI
  • Loading branch information
keegancsmith committed Oct 21, 2024
1 parent d80d701 commit a34436d
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,32 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3

- name: Cache ctags
uses: actions/cache@v3
with:
path: /usr/local/bin/universal-ctags
key: ${{ runner.os }}-ctags-${{ hashFiles('install-ctags-alpine.sh') }}

- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: add dependencies
run: apk add go git

- name: install ctags
run: ./install-ctags-alpine.sh
run: |
if [ ! -f /usr/local/bin/universal-ctags ]; then
./install-ctags-alpine.sh
fi
- name: test
run: go test ./...

Expand Down

0 comments on commit a34436d

Please sign in to comment.