diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 19:57:31 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-10 19:57:31 -0400 |
| commit | 9e3644bf11075551fd614d373bb059f49bf5415d (patch) | |
| tree | bdff4658b50e937da39c569bd34f3d30c9b961d4 | |
| parent | Fix password passed to health cmd and use 2022 sql server image (diff) | |
| download | cli-9e3644bf11075551fd614d373bb059f49bf5415d.zip | |
Remove github workflows
| -rw-r--r-- | .github/workflows/bump-homebrew.yml | 17 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 35 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 91 |
3 files changed, 0 insertions, 143 deletions
diff --git a/.github/workflows/bump-homebrew.yml b/.github/workflows/bump-homebrew.yml deleted file mode 100644 index a17f609..0000000 --- a/.github/workflows/bump-homebrew.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Bump Homebrew - -on: - release: - types: [released] - -jobs: - homebrew: - name: Bump Homebrew formula - runs-on: ubuntu-22.04 - steps: - - uses: mislav/bump-homebrew-formula-action@v3 - with: - formula-name: bolt - homebrew-tap: eugenetriguba/homebrew-bolt - env: - COMMITTER_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index c0e054e..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Release - -on: - release: - types: [published] - workflow_dispatch: - -permissions: - contents: write - packages: write - -jobs: - release-go-binary: - name: Release Go Binary - runs-on: ubuntu-22.04 - strategy: - matrix: - goos: [linux, windows, darwin] - goarch: ["386", amd64, arm64] - exclude: - - goarch: "386" - goos: darwin - - goarch: arm64 - goos: windows - steps: - - uses: actions/checkout@v4 - - uses: wangyoucao577/go-release-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: ${{ matrix.goos }} - goarch: ${{ matrix.goarch }} - project_path: "./cmd/bolt" - md5sum: false - sha256sum: true - binary_name: "bolt" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 940986c..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Test - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -jobs: - run-tests: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - db: - - {name: postgresql} - - {name: mysql} - - {name: mssql} - - {name: sqlite3} - steps: - - name: Checkout Source Code - uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - - name: Start Database - if: matrix.db.name != 'sqlite3' - run: | - env $(cat ".env.${{ matrix.db.name }}" | xargs) docker compose -f "docker-compose.${{ matrix.db.name }}.yml" up -d - echo "Waiting for the database to be ready..." - until [ "`docker inspect -f {{.State.Health.Status}} bolt_${{ matrix.db.name }}_db`" == "healthy" ]; do - sleep 5; - done - echo "Database is ready." - - name: Run Tests - run: env $(cat ".env.${{ matrix.db.name }}" | xargs) go test -p 1 -tags "${{ matrix.db.name }}" -covermode=count -coverprofile=coverage-${{ matrix.db.name }}.out ./... - - - name: Upload Coverage Report - uses: actions/upload-artifact@v4 - with: - name: coverage-${{ matrix.db.name }} - path: coverage-${{ matrix.db.name }}.out - - combine-coverage-reports-and-upload: - needs: [run-tests] - runs-on: ubuntu-22.04 - steps: - - name: Checkout Source Code - uses: actions/checkout@v4 - - - name: Download Coverage Reports - uses: actions/download-artifact@v4 - with: - name: coverage-postgresql - path: . - - - uses: actions/download-artifact@v4 - with: - name: coverage-mysql - path: . - - - uses: actions/download-artifact@v4 - with: - name: coverage-mssql - path: . - - - uses: actions/download-artifact@v4 - with: - name: coverage-sqlite3 - path: . - - - name: Combine Coverage Reports - run: go run github.com/wadey/gocovmerge@b5bfa59ec0adc420475f97f89b58045c721d761c coverage-*.out > coverage.combined.out - - - name: Show Combined Coverage - run: go tool cover -func=coverage.combined.out - - - name: Upload Combined Coverage Report - uses: actions/upload-artifact@v4 - with: - name: combined-coverage - path: coverage.combined.out - - - name: Upload to Codecov - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: coverage.combined.out - flags: unittests - name: bolt-coverage - fail_ci_if_error: true - |