Skip to content

Added CI/CD

Added CI/CD #1

Workflow file for this run

name: "Lint and test"
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '.run/**'
- 'api/**'
- 'features/**'
- 'config/**'
- 'deployments/**'
- '*.md'
tags:
- v*
pull_request:
types: [ opened, synchronize ]
branches:
- master
paths-ignore:
- 'docs/**'
- '.run/**'
- 'api/**'
- 'features/**'
- 'config/**'
- 'deployments/**'
- '*.md'
workflow_dispatch:
jobs:
# Run unit tests
tests:
name: "Run unit tests"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.1
- name: Install dependencies and run tests
run: |
go mod download
go test -v ./...