-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate "Test Linux system packages" from Drone to GitHub Actions (#2699
) * Add a GitHub Action for Test Linux system packages * Remove Drone build for "Test Linux system packages" * Don't run "Test Linux system packages" on a pull request
- Loading branch information
Showing
6 changed files
with
38 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test Linux system packages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- packaging/** | ||
- internal/tools/packaging_test/** | ||
- Makefile | ||
- tools/make/*.mk | ||
jobs: | ||
test_linux_system_packages: | ||
name: Test Linux system packages | ||
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: DOCKER_OPTS="" make dist/alloy-linux-amd64 | ||
- run: DOCKER_OPTS="" make test-packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters