Skip to content

feat: ci/cd

feat: ci/cd #5

Workflow file for this run

name: CI
on:
pull_request_target:
types: [opened, synchronize]
push:
branches:
- "main"
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.21"]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test