name: CI

on:
  push:
    branches:
      - main
    paths-ignore:
      - "Jenkinsfile"
      - ".git**"
  pull_request:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Setup Go
        uses: actions/setup-go@v3
        with:
          go-version: '1.19.0'
          cache: true

      - name: Setup MongoDB
        run: |
          make start_mongo

      - name: Build
        run: |
          make build

      - name: Run tests
        run: |
          make test

name: CI

on:
  push:
    branches:
      - main
    paths-ignore:
      - "Jenkinsfile"
      - ".git**"
  pull_request:

jobs:
  test:
    name: Test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Setup Go
        uses: actions/setup-go@v3
        with:
          go-version: '1.19.2'
          cache: true

      - name: Setup MongoDB
        run: |
          make start_mongo

      - name: Build
        run: |
          make build

      - name: Run tests
        run: |
          make test

Update GoLang in CI framework
Update GoLang in CI framework

GoLang is updated in the Rakefile by Dependabot but it doesn't touch
the CI file, which also needs to know the correct version. This is
updated here to bring it up to parity with the Rakefile version.
