Skip to content

Commit

Permalink
Run all unit tests on the main branch in GitHub actions.
Browse files Browse the repository at this point in the history
A GitHub action which runs `make test`. The corresponding Drone pipeline can be removed later on.
  • Loading branch information
ptodev committed Jan 24, 2025
1 parent ce4de41 commit db51d72
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ trigger:
- pull_request
type: docker
---
# TODO: Remove this pipeline once its GitHub actions equivalent is battle tested.
kind: pipeline
name: Test (Full)
platform:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/test_full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test (Full)
on:
push:
branches:
- main
# TODO: Remove this later
pull_request:
jobs:
test_linux:
name: Test (Full)
runs-on: ubuntu-latest
container:
image: grafana/alloy-build-image:v0.1.8
volumes:
- /var/run/docker.sock
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set ownership
# https://github.com/actions/runner/issues/2033#issuecomment-1204205989
run: |
# this is to fix GIT not liking owner of the checkout dir
chown -R $(id -u):$(id -g) $PWD
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
# TODO: Enable caching later.
cache: false
- run: K8S_USE_DOCKER_NETWORK=1 make test

0 comments on commit db51d72

Please sign in to comment.