Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .github/workflows/run_tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 DigitalOcean
# Copyright 2026 DigitalOcean
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Tests
name: CI

on:
push:
Expand All @@ -22,16 +22,24 @@ on:

jobs:

run-go-tests:
runs-on: ubuntu-20.04
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: '1.20'
# Builds the `builder` stage of the Dockerfile, which already contains
# the Go toolchain and Ceph dev libraries needed to compile ceph_exporter.
- name: Build in Docker
run: docker build --target builder -t ceph_exporter:build .

# We only test the Ceph package since main depends on go-ceph
- name: Go test
run: go test -v ./ceph
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# Reuses the `builder` stage, but sets TEST so the Dockerfile runs
# `go test -tags nautilus -v -race -count=1 ./...` before compiling.
- name: Test in Docker
run: docker build --target builder --build-arg TEST=1 -t ceph_exporter:test .
45 changes: 0 additions & 45 deletions .github/workflows/run_build.yml

This file was deleted.

Loading