From e085768750a773accb84fb77c5cfeae9aaf8d603 Mon Sep 17 00:00:00 2001 From: Joe Schafer Date: Mon, 1 Jan 2024 21:10:28 -0800 Subject: [PATCH] Use buildjet for actions Should provide a speedup. --- .github/workflows/go_lint.yaml | 8 ++++---- .github/workflows/go_test.yaml | 10 +++++----- .github/workflows/release.yaml | 21 --------------------- 3 files changed, 9 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/go_lint.yaml b/.github/workflows/go_lint.yaml index 9a27f6f8..1e42cca2 100644 --- a/.github/workflows/go_lint.yaml +++ b/.github/workflows/go_lint.yaml @@ -1,14 +1,14 @@ name: Lint -on: [push, pull_request] +on: push jobs: lint: name: lint - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 steps: - - uses: actions/setup-go@v3 + - uses: buildjet/setup-go@v4 with: go-version: 1.21.5 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/go_test.yaml b/.github/workflows/go_test.yaml index ea675e24..b62acebe 100644 --- a/.github/workflows/go_test.yaml +++ b/.github/workflows/go_test.yaml @@ -1,9 +1,9 @@ name: Test -on: [push, pull_request] +on: push jobs: test: name: go test - runs-on: ubuntu-latest + runs-on: buildjet-4vcpu-ubuntu-2204 services: postgres: image: postgres @@ -19,10 +19,10 @@ jobs: --health-timeout 5s --health-retries 5 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: buildjet/setup-go@v4 with: - go-version: '^1.16' + go-version: '1.21.5' - run: go test ./... - run: go test --tags=acceptance_test ./... env: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index da5957bf..00000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,21 +0,0 @@ -name: Release -on: - push: - branches: [main] - workflow_run: - workflows: ["Test"] - branches: [main] - types: [completed] -jobs: - release: - if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' && github.repository_owner == 'jschaf' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: '^1.16' - - name: Create release - run: make release - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}