Skip to content

Use Go 1.22

Use Go 1.22 #40

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.22'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Prepare for test
run: |
GRAFANA_VERSION=7.5.11
wget https://dl.grafana.com/oss/release/grafana-$GRAFANA_VERSION.linux-amd64.tar.gz
tar -zxvf grafana-$GRAFANA_VERSION.linux-amd64.tar.gz
cd grafana-$GRAFANA_VERSION
./bin/grafana-server &
- name: Test
run: go test -v ./...