mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 10:04:07 -08:00
8b03492104
Signed-off-by: Marco Pracucci <marco@pracucci.com>
32 lines
721 B
YAML
32 lines
721 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Upgrade golang
|
|
run: |
|
|
cd /tmp
|
|
wget https://dl.google.com/go/go1.16.8.linux-amd64.tar.gz
|
|
tar -zxvf go1.16.8.linux-amd64.tar.gz
|
|
sudo rm -fr /usr/local/go
|
|
sudo mv /tmp/go /usr/local/go
|
|
cd -
|
|
ls -l /usr/bin/go
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
- name: Run Tests
|
|
run: GO=/usr/local/go/bin/go make common-test
|