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 5900069
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,33 @@ 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

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: 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 5900069

Please sign in to comment.