mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-15 10:04:07 -08:00
8a4a659d73
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
31 lines
825 B
YAML
31 lines
825 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Upgrade golang
|
|
run: |
|
|
cd /tmp
|
|
wget https://dl.google.com/go/go1.18.7.linux-amd64.tar.gz
|
|
tar -zxvf go1.18.7.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
|
|
|
|
# This file would normally be created by `make assets`, here we just
|
|
# mock it because the file is required for the tests to pass.
|
|
- name: Mock building of necessary react file
|
|
run: mkdir web/ui/static/react && touch web/ui/static/react/index.html
|
|
|
|
- name: Run Tests
|
|
run: GO=/usr/local/go/bin/go make common-test
|