chore: add release-please and Github Actions for CI [v2] #1
Workflow file for this run
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: Run CI | |
on: | |
push: | |
branches: [ 'v2' ] | |
paths-ignore: | |
- '**.md' # Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [ 'v2', 'feat/**' ] | |
paths-ignore: | |
- '**.md' | |
env: | |
GOPRIVATE: github.com/launchdarkly/*-private | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go ${{ inputs.go-version }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.18 | |
- name: Run tests | |
run: make test | |
- name: Run linter | |
run: make lint |