Skip to content

Commit

Permalink
rename files
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
mowies committed Nov 21, 2024
1 parent 9f83a4d commit e4fece1
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 69 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/base-package-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Package Tests

on:
workflow_call:
inputs:
type:
required: true
type: string
distribution:
required: true
type: string

jobs:
package-tests:
name: Package Tests
runs-on: ubuntu-latest
strategy:
matrix:
type: ${{ fromJSON(inputs.type) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download built artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: linux-packages

- name: Test ${{ matrix.type }} package
run: ./scripts/package-tests/package-tests.sh ./otelcol*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} ${{ inputs.distribution }}
44 changes: 0 additions & 44 deletions .github/workflows/nightly-package-tests.yml

This file was deleted.

64 changes: 39 additions & 25 deletions .github/workflows/package-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,44 @@
name: Package Tests
name: Nightly Package Tests - Contrib - GoReleaser

on:
workflow_call:
inputs:
type:
required: true
type: string
distribution:
required: true
type: string
push:
branches: [main]
paths:
- "distributions/otelcol-contrib/**"
- "cmd/**"
- ".github/**"
- "scripts/**"
- "Makefile"
- "go.mod"
- "go.sum"
pull_request:
branches: [main]
paths:
- "distributions/otelcol-contrib/**"
- "cmd/**"
- ".github/**"
- "scripts/**"
- "Makefile"
- "go.mod"
- "go.sum"
schedule:
- cron: "0 2 * * *" # every day at 2am UTC

jobs:
package-tests:
name: Package Tests
runs-on: ubuntu-latest
strategy:
matrix:
type: ${{ fromJSON(inputs.type) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Download built artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: linux-packages
check-goreleaser:
name: Continuous Integration - Contrib - GoReleaser
uses: ./.github/workflows/base-ci-goreleaser.yaml
with:
distribution: otelcol-contrib
goos: '[ "linux" ]'
goarch: '[ "amd64" ]'
latest: true
secrets: inherit

- name: Test ${{ matrix.type }} package
run: ./scripts/package-tests/package-tests.sh ./otelcol*-SNAPSHOT-*_linux_amd64.${{ matrix.type }} ${{ inputs.distribution }}
package-tests:
name: Package tests
needs: check-goreleaser
uses: ./.github/workflows/package-tests.yaml
with:
distribution: otelcol-contrib
type: '[ "deb", "rpm" ]'

0 comments on commit e4fece1

Please sign in to comment.