Skip to content

Adding ARM Support to build #180

Adding ARM Support to build

Adding ARM Support to build #180

Workflow file for this run

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
# the License. A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
# and limitations under the License.
name: Timestream Prometheus Connector CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
name: Build and Test
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/setup-go@v5
with:
go-version: 'stable'
cache: false
env:
GO111MODULE: on
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Build
run: go build -v .
- name: Test
run: go test -race -v . ./timestream
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
cache: false
env:
GO111MODULE: on
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
skip-cache: true
version: v1.60.1
args: --exclude ".Log(.*)|format.Set|level.Set" --timeout=2m