Port from SQLite to Mongodb for cache layer #88
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: CI - Build and Test Application | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-intel, macos-arm, windows-latest] | |
include: | |
- os: ubuntu-latest | |
# No need to upload coverage reports for multiple platforms | |
uploadCoverage: true | |
- os: macos-intel | |
runsOn: macos-12 | |
- os: macos-arm | |
runsOn: macos-14 | |
runs-on: ${{ matrix.runsOn || matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Build | |
run: go build ./cmd/oms | |
- name: Unit Tests | |
run: go test ./... | |
- name: Integration Tests | |
if: matrix.os == 'ubuntu-latest' | |
run: go test -tags=integration ./... | |
- name: Coverage | |
if: matrix.os == 'ubuntu-latest' | |
run: make unit-test-coverage integration-test-coverage coverage-report |