Skip to content

Add github workflow for ci testing #1

Add github workflow for ci testing

Add github workflow for ci testing #1

Workflow file for this run

name: Build
on:
push:
branches:
- master
- main
pull_request:
workflow_dispatch:
env:
UPSTASH_VECTOR_REST_URL: ${{ secrets.UPSTASH_VECTOR_REST_URL }}
UPSTASH_VECTOR_REST_TOKEN: ${{ secrets.UPSTASH_VECTOR_REST_TOKEN }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache-dependency-path: 'go.sum'
- name: Install Go tools
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Build
run: make
- name: Test
run: make test