ci: use cache for based on the go.sum for dependencies for faster GH action execution #1599
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# skip-unit-tests.yml runs when unit-tests.yml is skipped | |
name: Unit Tests | |
on: | |
pull_request: | |
# paths-ignore makes the action run when the given paths are unchanged | |
# See "Handling skipped but required checks" in | |
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | |
paths-ignore: ["**.go", "**.proto", "go.mod", "go.sum"] | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: skip-tests | |
run: | | |
echo "job: unit-tests was skipped since Golang files were not changed." | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: skip-build | |
run: | | |
echo "job: build was skipped since Golang files were not changed." | |