Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Jan 21, 2025
1 parent 1136b7f commit 0e52872
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 6 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build
on:
pull_request:
# TODO: Remove workflow_dispatch later
workflow_dispatch:
jobs:
build:
name: Linux
runs-on: ubuntu-latest
container: grafana/alloy-build-image:v0.1.8
strategy:
matrix:
os: [linux]
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: linux
arch: ppc64le
- os: linux
arch: s390x
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go 1.23
uses: actions/setup-go@v5
- run: make generate-ui
- run: GO_TAGS="builtinassets promtail_journal_enabled" GOOS=linux GOARCH=arm64 GOARM= \
make alloy
31 changes: 25 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,32 @@ on:
branches:
- main
pull_request:
# TODO: Remove workflow_dispatch later
workflow_dispatch:
jobs:
test:
name: Test
strategy:
matrix:
platform: [macos-latest-xlarge]
runs-on: ${{ matrix.platform }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go 1.23
uses: actions/setup-go@v5
- run: sudo apt-get update -y && sudo apt-get install -y libsystemd-dev
- run: make lint
test_linux:
name: Test Linux
runs-on: ubuntu-latest
container: grafana/alloy-build-image:v0.1.8
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go 1.23
uses: actions/setup-go@v5
- run: make GO_TAGS="nodocker" test
test_macos:
name: Test MacOS
runs-on: macos-latest-xlarge
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 0e52872

Please sign in to comment.