Skip to content

Commit

Permalink
ci: remove unnecessary earthly build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Aug 10, 2024
1 parent dfd17af commit 89c999a
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 24 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
with:
submodules: false
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
check-latest: true
cache-dependency-path: "**/*.sum"
- run: go version
- name: Login to GitHub Docker
env:
DOCKER_REGISTRY: ghcr.io
Expand All @@ -28,22 +34,29 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- uses: earthly/actions/setup-earthly@v1
with:
version: v0.8.15
- name: Earthly version
run: earthly --version
- name: Run Linter and Tests
env:
EARTHLY_BUILD_ARGS: "COMMIT_HASH"
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
COMMIT_HASH: ${{ github.sha }}
FORCE_COLOR: 1
- name: Install dependencies
run: |
earthly -P -use-inline-cache --save-inline-cache --strict --push +test
go install github.com/ory/go-acc@latest
- name: Run tests
run: |
go-acc ./... -o coverage.out --ignore goaktpb,mocks,internal/internalpb -- -mod=vendor -race -v
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
verbose: true
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.59.1
args: --timeout 10m --config .golangci.yaml
37 changes: 25 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
with:
submodules: false
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
check-latest: true
cache-dependency-path: "**/*.sum"
- run: go version
- name: Login to GitHub Docker
env:
DOCKER_REGISTRY: ghcr.io
Expand All @@ -32,22 +38,29 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN}}
- uses: earthly/actions/setup-earthly@v1
with:
version: v0.8.15
- name: Earthly version
run: earthly --version
- name: Run Linter and Tests
env:
EARTHLY_BUILD_ARGS: "COMMIT_HASH"
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }}
COMMIT_HASH: ${{ github.sha }}
FORCE_COLOR: 1
- name: Install dependencies
run: |
earthly -P -use-inline-cache --save-inline-cache --strict --push +test
go install github.com/ory/go-acc@latest
- name: Run tests
run: |
go-acc ./... -o coverage.out --ignore goaktpb,mocks,internal/internalpb -- -mod=vendor -race -v
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
fail_ci_if_error: false
verbose: true
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.59.1
args: --timeout 10m --config .golangci.yaml

0 comments on commit 89c999a

Please sign in to comment.