Skip to content

chore: setup test cicd #1

chore: setup test cicd

chore: setup test cicd #1

Workflow file for this run

name: test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build:
strategy:
matrix:
go: ["1.24"]
name: all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/cache@v4
id: cache-go-sum
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-${{ matrix.go }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ matrix.go }}-go-
- name: download dependencies
if: steps.cache-go-sum.outputs.cache-hit != 'true'
run: go mod tidy
- name: build
run: make build
- name: lint
run: make lint
- name: test
run: make test