Skip to content

Commit

Permalink
ci: cache go mod and universal-ctags (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
keegancsmith authored Oct 21, 2024
1 parent d80d701 commit cc19049
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .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: add dependencies
run: apk add go git
run: apk add go git tar

- 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: 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 cc19049

Please sign in to comment.