Skip to content

Sumo Logic Extension version 8 #68

Sumo Logic Extension version 8

Sumo Logic Extension version 8 #68

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: build-and-test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Checking compilation errors while generating image
run: env GOOS=linux go build -o "sumologic-extension" "lambda-extensions/sumologic-extension.go"
test:
strategy:
matrix:
go: ['1.21', '1.22']
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go (version - ${{ matrix.go }})
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run Unit Tests
run: go test ./...