chore(deps): bump github.com/klauspost/compress from 1.17.7 to 1.17.8 #189
Workflow file for this run
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
name: PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
gen-diff: | |
name: Codegen Diff | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- run: make generate man | |
- run: git diff --exit-code | |
lint: | |
name: Lint | |
needs: gen-diff | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
cache: false | |
- run: echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint)" >> $GITHUB_ENV | |
- uses: golangci/golangci-lint-action@v4 | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
test: | |
name: Test | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- run: make test | |
build: | |
name: Build | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- run: echo "GORELEASER_VERSION=$(go list -m -f '{{.Version}}' github.com/goreleaser/goreleaser)" >> $GITHUB_ENV | |
- uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: ${{ env.GORELEASER_VERSION }} | |
args: build --snapshot | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
dist/darwin_darwin_amd64_v1/axiom | |
dist/linux_linux_amd64_v1/axiom | |
dist/windows_windows_amd64_v1/axiom.exe | |
binary-integration: | |
name: Binary integration | |
needs: build | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
strategy: | |
max-parallel: 2 | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
# - windows-latest | |
include: | |
- os: macos-latest | |
goos: darwin | |
- os: ubuntu-latest | |
goos: linux | |
# - os: windows-latest | |
# goos: windows | |
runs-on: ${{ matrix.os }} | |
env: | |
AXIOM_TOKEN: ${{ secrets.TESTING_DEV_TOKEN }} | |
AXIOM_URL: ${{ secrets.TESTING_DEV_API_URL }} | |
AXIOM_ORG_ID: ${{ secrets.TESTING_DEV_ORG_ID }} | |
AXIOM_DATASET: cli-test-${{ github.run_id }}-${{ matrix.goos }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
- name: Test (Unix) | |
if: matrix.goos == 'darwin' || matrix.goos == 'linux' | |
run: | | |
chmod +x artifact/${{ matrix.goos }}_${{ matrix.goos }}_amd64_v1/axiom | |
mv artifact/${{ matrix.goos }}_${{ matrix.goos }}_amd64_v1/axiom /usr/local/bin/axiom | |
axiom version -I | |
axiom dataset create -n=${{ env.AXIOM_DATASET }} -d="CLI Integration test" | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.json.gz -t=json -e=gzip | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.ndjson.gz -t=ndjson -e=gzip | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.csv.gz -t=csv -e=gzip | |
gunzip testdata/logs.*.gz | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.json -f=testdata/logs.ndjson -f=testdata/logs.csv | |
axiom dataset list | |
axiom query "['${{ env.AXIOM_DATASET }}']" | |
- name: Test (Windows) | |
if: matrix.goos == 'windows' | |
run: | | |
chmod +x artifact/${{ matrix.goos }}_${{ matrix.goos }}_amd64_v1/axiom.exe | |
mv artifact/${{ matrix.goos }}_${{ matrix.goos }}_amd64_v1/axiom.exe C:/Windows/System32/axiom.exe | |
axiom version -I | |
gunzip testdata/logs.*.gz | |
axiom dataset create -n=${{ env.AXIOM_DATASET }} -d="CLI Integration test" | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.json | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.ndjson | |
axiom ingest ${{ env.AXIOM_DATASET }} -f=testdata/logs.csv | |
axiom dataset list | |
axiom query "['${{ env.AXIOM_DATASET }}']" | |
- name: Cleanup | |
if: always() | |
run: axiom dataset delete -f ${{ env.AXIOM_DATASET }} |