Skip to content

Commit

Permalink
wip: πŸ”• temporary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Nov 2, 2024
1 parent e6d3787 commit 571a501
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,34 @@ jobs:
- run: npm --prefix "$NPM_PREFIX" run test
- run: npm --prefix "$NPM_PREFIX" run build

build-app:
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [linux, darwin, windows]
arch: [amd64, arm64]
needs: [lint-and-test, lint-and-test-web]
steps:
- uses: actions/checkout@v4
- {uses: actions/setup-go@v5, with: {go-version-file: go.mod}}
- run: go install "github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected]"
- run: go generate -skip readme ./...
- {uses: gacts/github-slug@v1, id: slug}
- env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
LDFLAGS: -s -w -X gh.tarampamp.am/webhook-tester/v2/internal/appmeta.version=${{ steps.slug.outputs.commit-hash-short }}
run: go build -trimpath -ldflags "$LDFLAGS" -o ./webhook-tester ./cmd/webhook-tester/
- if: matrix.os == runner.os && matrix.arch == 'amd64'
run: ./webhook-tester --version && ./webhook-tester -h

build-docker-image:
name: Build the docker image
runs-on: ubuntu-latest
needs: [lint-and-test, lint-and-test-web]
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 571a501

Please sign in to comment.