feat(store): Better syntax (merge after go 1.23 release) #471
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: pipeline | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
args: ["build", "lint", "test"] | |
os: [ubuntu-latest] | |
go-version: [1.23.1] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Cache Golang Deps | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go | |
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: Run ${{ matrix.args }} | |
run: make ${{ matrix.args }} | |
env: | |
GOPATH: /home/runner/go |