Skip to content

Commit

Permalink
Go is not really needed in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
streamer45 committed Oct 23, 2024
1 parent 1d92eb4 commit f8b17ec
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ on: [push]
name: CI
jobs:
lint:
env:
GOPATH: ${{ github.workspace }}

defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}

runs-on: ubuntu-latest

Expand All @@ -16,35 +13,22 @@ jobs:
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/go.mod
cache-dependency-path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/go.sum
- name: Lint code
run: |
make go-lint
test:
env:
GOPATH: ${{ github.workspace }}

defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
working-directory: ${{ github.workspace }}/src/github.com/${{ github.repository }}

runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/go.mod
cache-dependency-path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}/go.sum
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}
- name: Execute Tests
run: |
go mod download
Expand Down

0 comments on commit f8b17ec

Please sign in to comment.