Bump org.springframework.boot:spring-boot-starter-parent (#279) #775
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
GO_VERSION: "1.20" | |
GOFLAGS: -mod=readonly | |
jobs: | |
build: | |
name: Build project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Cache Go module dependencies | |
id: cache-go-module-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }} | |
go-mod-cache-${{ runner.os }} | |
go-mod-cache | |
- name: Cache build dependencies | |
id: cache-build-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: bin/ | |
key: build-deps-v2-{{ hashFiles('common.mk') }} | |
restore-keys: | | |
build-deps-v2 | |
- name: Run vet | |
run: make vet-all | |
- name: Run lint | |
run: make lint-all | |
- name: Run unit tests | |
run: make test |